Skip to main content

Errors and testing

All endpoints return JSON. Successful resource responses are generally wrapped in data; paginated responses also include meta. Errors return a message that is safe to log and show in an appropriate user-facing form.

Error format

Common responses

Build a safe retry policy

For a timed-out create request, do not blindly issue the request again. First search your application records using the customer email or your generated payment reference. A payment reference must be unique, which makes it a useful idempotency key in your system.

Test in sandbox

  1. Use the sandbox base URL and a sandbox API key.
  2. Create a test customer with an email address not already used in that sandbox organization.
  3. Create a payment with a clearly identifiable test reference, such as test_order_001.
  4. Complete the provider’s sandbox flow, then retrieve the payment by ID and check its status.
  5. Check wallet balances and payout behavior only with sandbox-safe accounts and data.
Keep test references and IDs out of production workflows. Sandbox and production environments are isolated: an ID or key from one will not work in the other.