{
"customer": {
"name": "Jorge Santos",
"email": "[email protected]",
"phone": "11983272733",
"document": {
"number": "04281554645",
"type": "CPF"
}
},
"paymentMethod": "PIX",
"pix": {
"expiresInDays": 1
},
"amount": 100,
"items": [
{
"title": "Produto Teste 01",
"unitPrice": 100,
"quantity": 1,
"externalRef": "PRODTESTE01"
}
]
}API Key: sk_like_kgJELJkZQVNo...
Chave Criptografada: c2tfbGlrZV9rZ0pFTEprWlFWTm9SekVUR051UzJsdU1XNFB3RTQ4MkpleElsT3Vmd3B2MmFtZGY6
https://apiv2.payevo.com.br/functions/v1/transactions
Content-Type: application/json Accept: application/json Authorization: Basic c2tfbGlrZV9rZ0pFTEprWlFWTm9SekVUR051UzJsdU1XNFB3RTQ4MkpleElsT3Vmd3B2MmFtZGY6
{"customer":{"name":"Jorge Santos","email":"[email protected]","phone":"11983272733","document":{"number":"04281554645","type":"CPF"}},"paymentMethod":"PIX","pix":{"expiresInDays":1},"amount":100,"items":[{"title":"Produto Teste 01","unitPrice":100,"quantity":1,"externalRef":"PRODTESTE01"}]}HTTP Code: 500
Requisição executada sem erros cURL
{"error":"Erro interno ao criar transação","details":"Invalid response format, expected JSON but received: O Valor somado com as taxas deram 0 ou negativo.","code":"Error"}{
"error": "Erro interno ao criar transa\u00e7\u00e3o",
"details": "Invalid response format, expected JSON but received: O Valor somado com as taxas deram 0 ou negativo.",
"code": "Error"
}{
"url": "https:\/\/apiv2.payevo.com.br\/functions\/v1\/transactions",
"content_type": "application\/json",
"http_code": 500,
"header_size": 820,
"request_size": 247,
"filetime": -1,
"ssl_verify_result": 0,
"redirect_count": 0,
"total_time": 2.001552,
"namelookup_time": 0.003198,
"connect_time": 0.011522,
"pretransfer_time": 0.053287,
"size_upload": 297,
"size_download": 174,
"speed_download": 86,
"speed_upload": 148,
"download_content_length": -1,
"upload_content_length": 297,
"starttransfer_time": 0.053346,
"redirect_time": 0,
"redirect_url": "",
"primary_ip": "104.18.38.10",
"certinfo": [],
"primary_port": 443,
"local_ip": "109.110.184.69",
"local_port": 62774,
"http_version": 3,
"protocol": 2,
"ssl_verifyresult": 0,
"scheme": "HTTPS",
"appconnect_time_us": 52727,
"connect_time_us": 11522,
"namelookup_time_us": 3198,
"pretransfer_time_us": 53287,
"redirect_time_us": 0,
"starttransfer_time_us": 53346,
"total_time_us": 2001552
}Erro ao criar transação no gateway: Erro HTTP 500: {"error":"Erro interno ao criar transação","details":"Invalid response format, expected JSON but received: O Valor somado com as taxas deram 0 ou negativo.","code":"Error"}
#0 C:\xampp\htdocs\papa-checkout\teste-payevo-completo.php(126): PayevoGateway->criarTransacaoPix(Array)
#1 {main}