URL do Webhook: http://localhost:8000/api/pixup-webhook.php
✅ Transação real encontrada no banco!
Transaction ID da última transação: a7c43e8c46ea858a08acmlcst21h167p
Nota: O teste usará este transactionId real. Se existir no banco, o webhook processará corretamente.
{
"requestBody": {
"transactionType": "RECEIVEPIX",
"transactionId": "a7c43e8c46ea858a08acmlcst21h167p",
"external_id": "test-external-1777634321",
"amount": 1,
"paymentType": "PIX",
"status": "PAID",
"dateApproval": "2026-05-01 11:18:41",
"creditParty": {
"name": "Usuário Teste",
"email": "[email protected]",
"taxId": "11111111111"
},
"debitParty": {
"bank": "BSPAY SOLUCOES DE PAGAMENTOS LTDA",
"taxId": "46872831000154"
}
}
}Aguardando resposta...
HTTP Code: 0
❌ Erro cURL: Failed to connect to localhost port 8000 after 3 ms: Couldn't connect to server
Possíveis causas:
❌ Não foi possível conectar ao webhook
Verifique:
php -S localhost:8000 na pasta apiapi/api/pixup-webhook.php existe?https://unprejudicial-buckleless-rachel.ngrok-free.dev/api/pixup-webhook.phpPara testar via ngrok, altere a URL no código acima ou execute:
curl -X POST https://unprejudicial-buckleless-rachel.ngrok-free.dev/api/pixup-webhook.php \
-H "Content-Type: application/json" \
-d '{"requestBody":{"transactionType":"RECEIVEPIX","transactionId":"a7c43e8c46ea858a08acmlcst21h167p","external_id":"test-external-1777634321","amount":1,"paymentType":"PIX","status":"PAID","dateApproval":"2026-05-01 11:18:41","creditParty":{"name":"Usu\u00e1rio Teste","email":"[email protected]","taxId":"11111111111"},"debitParty":{"bank":"BSPAY SOLUCOES DE PAGAMENTOS LTDA","taxId":"46872831000154"}}}'