Skip to the page

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 /account reports 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 inExampleWhat happens
anything else500succeeded after 5 s, with a UTR
02502failed after 5 s (provider_failed)
03503needs_review after 5 s, with paidAmount 1 lower
04504stays pending until the checkout page is used or a UTR is bound; otherwise it expires
05505expires after 60 s, then a late success 60 s later
06506422 provider_refused at creation; the pay-in is failed
07507424 provider_unreachable at creation; the pay-in is failed
08508502 provider_outcome_unknown at creation; pending with no nextAction, expires after 60 s
09509failed 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 inVPAWhat happens
anything elseanything elsesucceeded after 5 s, with a UTR
2fail@sandboxfailed after 5 s (beneficiary_invalid); the hold is released
3review@sandboxneeds_review after 5 s; the hold is kept
4slow@sandboxprocessing for 2 minutes, then succeeded
5refuse@sandbox422 provider_refused (beneficiary_bank_unsupported) at creation
6unreachable@sandbox424 provider_unreachable at creation
7unknown@sandbox502 provider_outcome_unknown; held, then succeeded after 60 s
8unknown-fail@sandbox502 provider_outcome_unknown, then failed after 60 s
9reverse@sandboxsucceeded after 5 s, then reversed after 60 s

In the console, Developers, Overview has a button for each payout outcome on a test account.