Sandbox overview
The PayRetailers Sandbox is a test environment that returns deterministic payment outcomes on demand. You choose the outcome you want — an approval, a rejection, a payout that fails because the destination account is blocked — and the sandbox produces it, every time, in the same shape production would.
It runs the same API as production: same endpoints, same request and response schemas, same webhook contract. The integration you build against the sandbox is the integration you ship.
[email protected] + TestApproved → PENDING then APPROVED by webhookChoose the outcome you want by choosing the customer you send it with. Nothing else in the request changes.
What you can test
- The full payment lifecycle — approvals, rejections, cancellations, and payments a customer starts but never completes.
- Failure handling — every error your integration can encounter, triggered on demand rather than waiting for one to happen.
- Webhook processing — real webhook deliveries to your own endpoint, with the same payloads and the same signature as production.
- Your retry and recovery logic — return a non-200 from your endpoint and watch the redelivery arrive.
- Idempotency — replay a request and confirm you create one payment, not two.
- Automated test suites — outcomes are deterministic, so the same request always produces the same result. Safe to run in CI.
What it is not
| Not a live environment | No funds ever move. No payment service provider is contacted. Nothing reaches a real bank, wallet, or cash network. |
| Not connected to your production account | Separate infrastructure, separate credentials, separate data. Nothing you do here affects production. |
| Not a partner simulator | The sandbox reproduces PayRetailers behaviour. Provider-specific quirks that we normalise in production are not re-exposed here. |
| Not a dashboard | This release is API-only. You drive it from your own code or an HTTP client. |
What is available in this release
Payin — collecting payments from your customers. 12 scenarios.
Payout — disbursing funds to beneficiaries. 6 scenarios.
Coverage spans Latin America and Africa. The exact payment methods available to you depend on your account and market — see Payment methods and channels for the current list.
How it works, in three sentences
You send a normal API request. The scenario you get is selected by the customer email and last name you use — each published pair maps to exactly one outcome. Everything else in the request behaves as it does in production.
There is no special header, no query flag, and no change to your request structure. Details in How scenarios are selected.
One thing to know before you write error handling
The sandbox will produce any scenario you ask for, regardless of the country and payment method in the request. That includes outcomes that production cannot produce in your market — an identity rejection that only exists in the Brazilian identity registry, for example, will still resolve if you send it with a Kenyan payment method.
Before you build handling for a failure mode, check Production realism by country. It lists which scenarios reflect real production behaviour in each market. Treat anything outside that list as a sandbox artefact, even when it returns a valid response.
Next
Start with the Quickstart — credentials to a completed payment with a webhook, in about ten minutes.
Updated about 8 hours ago