Test cards
Which card numbers pass, which fail — and a valid card generator.
PIX and boleto
Control settlement: pay instantly, after X minutes, or manually.
Simulate events
Force manual payment and chargeback from the dashboard.
Test script
A step-by-step walkthrough covering approval, decline, PIX, refund, and chargeback.
How to access
- Log in to the production Dashboard and click “Testing environment”.
- Grab your sandbox credentials from the credentials section.
- Point your integration to the sandbox URLs:
| Service | Base URL |
|---|---|
| API (PSP) | https://api.sandbox.z2pay.com |
| Checkout API | https://checkout-api.sandbox.z2pay.com |
| Hosted pages | https://pay.sandbox.z2pay.com |
Principle: everything is deterministic
Unlike a real gateway (where the outcome depends on the card issuer), in the sandbox you control the result:| Method | How the outcome is determined |
|---|---|
| Card | By the last 4 digits of the card number. E.g.: ...1002 = declined, ...1111 = approved. |
| PIX / boleto | By the settlement configuration per method (instant/auto/manual) and, optionally, by amount (magic cents). |
| Chargeback | By amount (paid card ending in 31) or manually from the dashboard. |

