is_test flag. AptaPay
resolves mode server-side from the authenticated key; it is never read from
the body.
What differs between modes
Test mode is not a sandbox
This is the point most integrations get wrong.Eversend has no sandbox. “Test mode” for AptaPay means a real provider
account with a low-balance wallet, not a consequence-free environment.
Test-mode transactions move real money in small amounts.
- Do not load-test against test-mode credentials. You will drain a real wallet and hit real provider rate limits.
- Expect the ceiling to be low. Test-mode amounts are capped at
500.00— that is50000minor units in a 2-decimal currency, or500in UGX, RWF, XAF and XOF. - Failures in test mode are real provider failures, which makes them a genuinely good rehearsal for your error handling.
Keeping the two apart
Use separate secret storage per mode and select by environment, never by a runtime flag that a request could influence:config.ts
data.is_test_mode, so your handler can assert the
mode matches the environment it is running in and refuse anything
unexpected.