Sandbox
A test gateway account is bound to the sandbox, a provider that moves no money. What you ask it for picks what happens, so every branch of your code can be run on purpose.
Test accounts
- A test account imitates one real provider: its currency, whole-amount rule, payout methods, limits, UTR binding and payer-IP rule.
GET /accountreports the imitated provider, so your code takes the same branches as it will in live. - Its keys start with
aqk_test_, and every event it sends carries"mode": "test". Live and test data never mix. - It starts with a balance of zero. Sandbox pay-ins fund it, and payouts spend it.
- The account's real payment password is checked, lockout included.
- AquaPay adds a test account to your organization on request. In the console, every screen of a test account is marked, and the whole Developers area stands on hatched ground.
"After 5 s" below means the sandbox reports the change about five seconds later, as a provider would, so webhooks follow exactly as in live. A refresh gives the same answer.
Pay-ins, by amount
The last two digits of the whole part of amount pick the outcome.
| Amount ends in | Example | What happens |
|---|---|---|
| anything else | 500 | succeeded after 5 s, with a UTR |
02 | 502 | failed after 5 s (provider_failed) |
03 | 503 | needs_review after 5 s, with paidAmount 1 lower |
04 | 504 | stays pending until the checkout page is used or a UTR is bound; otherwise it expires |
05 | 505 | expires after 60 s, then a late success 60 s later |
06 | 506 | 422 provider_refused at creation; the pay-in is failed |
07 | 507 | 424 provider_unreachable at creation; the pay-in is failed |
08 | 508 | 502 provider_outcome_unknown at creation; pending with no nextAction, expires after 60 s |
09 | 509 | failed after 5 s, then a late success after 60 s |
A pending sandbox pay-in's nextAction.redirectUrl opens a small checkout page with three buttons: Pay, Pay 1 less, and Fail. It lets a tester walk the payer's side of the flow.
Payouts, by beneficiary
The last digit of a bank accountNumber or of a wallet address picks the outcome, or the part of a VPA before @sandbox. A VPA on any other handle succeeds.
| Account or wallet ends in | VPA | What happens |
|---|---|---|
| anything else | anything else | succeeded after 5 s, with a UTR |
2 | fail@sandbox | failed after 5 s (beneficiary_invalid); the hold is released |
3 | review@sandbox | needs_review after 5 s; the hold is kept |
4 | slow@sandbox | processing for 2 minutes, then succeeded |
5 | refuse@sandbox | 422 provider_refused (beneficiary_bank_unsupported) at creation |
6 | unreachable@sandbox | 424 provider_unreachable at creation |
7 | unknown@sandbox | 502 provider_outcome_unknown; held, then succeeded after 60 s |
8 | unknown-fail@sandbox | 502 provider_outcome_unknown, then failed after 60 s |
9 | reverse@sandbox | succeeded after 5 s, then reversed after 60 s |
In the console, Developers, Overview has a button for each payout outcome on a test account.