Production realism by country
Slug: sandbox-production-realism
Read this before you write error-handling code. It is the shortest page in this documentation and the one most likely to save you work.
The one thing to know
A scenario is selected by the customer email and last name alone. The sandbox does not check whether the outcome you asked for is possible in the country and payment method you sent.
So the sandbox will happily return a Brazilian identity-registry rejection on a Kenyan mobile-money payment. It resolves, it returns a valid response, and it is meaningless: production cannot produce that outcome in Kenya, because the registry status behind it does not exist there.
The rule that follows:
Build handling for the scenarios listed for your market. Treat everything else as a sandbox artefact, even when it returns a valid response.
This is why the lists below exist. They are not a restriction on what you can send — they are the answer to what is worth testing.
Payin — what to test in your market
Find your country. Those are the outcomes your integration will actually encounter.
These are the markets with payin methods in the sandbox. Channels and methods per market are on Payment methods and channels.
| Market | Scenarios that reflect production | Count |
|---|---|---|
Brazil (BR) | APPROVED, FAILED, CANCELLED, PENDING, IDENTITY_INVALID_AGE, IDENTITY_NOT_ALIVE, IDENTITY_INTL_LIST, IDENTITY_INVALID_ID, IDENTITY_SUSPENDED, IDENTITY_INVALID_STATUS, THIRD_PARTY_NOT_ALLOWED | 11 |
Mexico (MX) | APPROVED, FAILED, CANCELLED, PENDING, IDENTITY_INVALID_AGE, IDENTITY_NOT_ALIVE, IDENTITY_INTL_LIST, THIRD_PARTY_NOT_ALLOWED | 8 |
Argentina (AR) | APPROVED, FAILED, CANCELLED, PENDING, IDENTITY_INVALID_AGE, IDENTITY_NOT_ALIVE, IDENTITY_INTL_LIST, IDENTITY_INVALID_ID, IDENTITY_NOT_FOUND, THIRD_PARTY_NOT_ALLOWED | 10 |
Colombia (CO) | APPROVED, FAILED, CANCELLED, PENDING | 4 |
Chile (CL) | APPROVED, FAILED, CANCELLED, PENDING | 4 |
Peru (PE) | APPROVED, FAILED, CANCELLED, PENDING | 4 |
Ecuador (EC) | APPROVED, FAILED, CANCELLED, PENDING | 4 |
Kenya (KE) | APPROVED, FAILED, CANCELLED, PENDING | 4 |
Uganda (UG) | APPROVED, FAILED, CANCELLED, PENDING | 4 |
Rwanda (RW) | APPROVED, FAILED, CANCELLED, PENDING | 4 |
In 7 of these markets the list is exactly the four lifecycle states — APPROVED, FAILED, CANCELLED, PENDING. That is not an omission: the identity scenarios exist because specific national registries publish specific rejection reasons, and where those registries do not exist, neither does the failure mode.
Why the identity scenarios differ by market
Identity rejections are not PayRetailers business rules. They come from national identity registries, and the registries do not offer the same information in every country.
| Scenario | Markets | Reflects |
|---|---|---|
IDENTITY_INVALID_AGE | Brazil, Argentina, Mexico | age restrictions enforced against the national registry |
IDENTITY_NOT_ALIVE | Brazil, Argentina, Mexico | registries that report a deceased document holder |
IDENTITY_INTL_LIST | Brazil, Argentina, Mexico | international watchlist screening |
IDENTITY_INVALID_ID | Brazil, Argentina | documents validated against the national registry |
IDENTITY_SUSPENDED | Brazil | a suspended status that only the Brazilian registry publishes |
IDENTITY_INVALID_STATUS | Brazil | registry statuses that block payments, specific to Brazil |
IDENTITY_NOT_FOUND | Argentina | documents absent from the Argentine registry |
If you operate in a market that is not listed for a given scenario, your integration will never see it. You do not need a code path for it.
Third-party rejection is method-specific
THIRD_PARTY_NOT_ALLOWED is the one scenario tied to particular payment methods, not just countries — it only happens where the method identifies the payer:
| Market | Methods |
|---|---|
Brazil (BR) | PIX |
Mexico (MX) | SPEI |
Argentina (AR) | MERCADO_PAGO, MODO, QR_TRANSFER |
If you integrate one of those methods, this is a real rejection your users will hit — and it arrives by webhook with no delay, which makes it the most demanding scenario in the catalog to handle correctly. See Payin scenarios.
Payout
Simpler: all six payout scenarios reflect production in every payout market, with one exception. PO_ERROR_TAX is Brazil-only — the tax condition behind it does not exist elsewhere.
So your payout test matrix is the same everywhere: the successful payout plus the four account-related failures, and TAX_ISSUE on top if you disburse in Brazil.
Payout markets: Brazil, Argentina, Mexico, Chile, Ecuador, Colombia, Peru, Nigeria, Kenya, South Africa, Tanzania, Ghana, Uganda. Note this is not the same set as payin — see Payment methods and channels.
Practical guidance
Building a test suite for one market. Take your row from the payin table, add the payout set, and that is your matrix. Nothing else needs a code path.
Operating in several markets. Build the union of the rows, and gate the market-specific handlers on country. The lifecycle states are shared, so most of your code is common — what varies is which identity rejections you need to present to a customer.
You exercised a scenario outside your market by accident. Nothing is broken; the sandbox resolved it because resolution ignores country. Check this page, and drop the code path if the scenario is not listed for you.
The failure you need is not listed for your market. Talk to your PayRetailers integrations representative. If a real rejection exists in your market and is missing from the catalog, we want to know — that is a gap on our side, not yours.
Next
- Payment methods and channels — which methods are available to you
- Payin scenarios and Payout scenarios — the trigger pairs
Updated about 8 hours ago