Skip to main content
Use this page to drive deterministic outcomes in sandbox (https://api.sandbox.pagou.ai). The sandbox test acquirer decides the result of every charge from the values below, so you can validate your integration end to end — approvals, refusals, 3DS, and asynchronous Pix/Boleto settlement — without touching a real provider.
These values only work in sandbox. In production, real acquirers decide the outcome. Keep sandbox and production credentials, webhooks, and base URLs separate (see Environments).

Pix, Boleto and Voucher

A Pix/Boleto/Voucher charge is created as waiting_payment (with a QR code or barcode). The sandbox settles it to paid 15 seconds after the QR code / barcode is generated when the charge is eligible. Eligibility is decided by the payer document, or — when no document is sent — by the amount:
To get a successful paymentSend
By buyer documentbuyer.document.number = 06957410600 or 39027187819 (any amount)
Without an approved documentamount = 7300 (R$ 73,00) and currency = BRL
Any other amount (without an approved document) stays pending and never settles — use this to test your pending/expiration handling.
1

Create the charge

Send a Pix, Boleto, or Voucher charge with one of the eligible combinations above.
2

Show the QR code / barcode

The response returns a scannable Pix EMV (copia e cola) or a Boleto barcode in waiting_payment.
3

Wait ~15 seconds

The sandbox confirms eligible charges and fires the payment.confirmed webhook; the transaction moves to paid.

Credit card

Any payer information is accepted. The final status is decided by the card number — use any future expiry and any CVV unless noted below.
ScenarioBrandNumberExpiryCVVResult
Approved (à vista)Visa4548 8120 4940 000412/34123captured
Approved (installments)Mastercard5067 2300 0000 901101/28123captured
Approved (installments)Visa4761 1200 0000 014801/28123captured
DeclinedVisa1111 1111 1111 111712/34123refused (card_declined)
3DS ChallengeVisa4918 0191 9988 383912/34123three_ds_required → challenge
3DS FrictionlessVisa4918 0191 6003 460212/34123captured (no challenge)
Tokenization5448 2800 0000 000701/35123tokenizes; charge captured

3DS Challenge

The 3DS Challenge card returns three_ds_required with a next_action. Complete the challenge in the Payment Element (or the sandbox challenge endpoint); on success the transaction settles to paid, on failure to refused. See Three-D Secure for the browser flow.

3DS Frictionless

The 3DS Frictionless card authenticates without a challenge and is approved directly — use it to verify the no-challenge happy path.

Verifying the result

Always trust the webhook, not the synchronous response, as the source of truth:
  • Pix/Boleto/Voucher → payment.confirmed ~15s after creation (eligible charges).
  • Card approved → captured; declined → refused.
See Webhooks and Transaction statuses for the full lifecycle.

Next steps