URL do Webhook: http://localhost:8000/api/pixup-webhook.php
✅ Transação real encontrada no banco!
Transaction ID da última transação: 973208f07df1c630c2c4ml8f1pzv3na4
Nota: O teste usará este transactionId real. Se existir no banco, o webhook processará corretamente.
{
"requestBody": {
"transactionType": "RECEIVEPIX",
"transactionId": "973208f07df1c630c2c4ml8f1pzv3na4",
"external_id": "test-external-1770463697",
"amount": 1,
"paymentType": "PIX",
"status": "PAID",
"dateApproval": "2026-02-07 11:28:17",
"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 0 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":"973208f07df1c630c2c4ml8f1pzv3na4","external_id":"test-external-1770463697","amount":1,"paymentType":"PIX","status":"PAID","dateApproval":"2026-02-07 11:28:17","creditParty":{"name":"Usu\u00e1rio Teste","email":"[email protected]","taxId":"11111111111"},"debitParty":{"bank":"BSPAY SOLUCOES DE PAGAMENTOS LTDA","taxId":"46872831000154"}}}'