Documentation Index
Fetch the complete documentation index at: https://developer.pagou.ai/llms.txt
Use this file to discover all available pages before exploring further.
Use this page before launch and whenever browser payment behavior looks inconsistent.
Test checklist
- confirm the browser uses the sandbox public key
- confirm the backend uses the sandbox secret token
- verify the backend returns the transaction payload intact
- verify webhook delivery before trusting browser state
- reconcile any interrupted 3DS attempt
Example backend request
{
"external_ref": "order_2001",
"amount": 2490,
"currency": "BRL",
"method": "credit_card",
"token": "pgct_token_from_browser"
}
Example backend response
{
"success": true,
"requestId": "req_4005",
"data": {
"id": "tr_2001",
"status": "pending"
}
}
Common error
{
"type": "https://api.pagou.ai/problems/validation-error",
"title": "Validation Error",
"status": 422,
"detail": "The request contains invalid data.",
"errors": [
{
"field": "token",
"message": "Token is required for credit card payments",
"code": "invalid_type"
}
]
}
Fix: if the backend cannot see a valid Payment Element token, stop and verify the browser integration before changing order logic or webhook handling.