Testing & Sandbox
Testing & Sandbox
Sandbox/Staging Hosts
Point {{payments_api_host}} and {{disbursement_api_host}} (see Environments & Setup) at these values while integrating.
Sandbox Credentials
The collection ships with working sandbox/staging credentials so you can exercise both APIs end-to-end before going live:
These same credentials work for both the Payments API’s Create Token and the Disbursement API’s Create Access Token.
The Testing Folder (Disbursement API)
A dedicated Testing folder exists under the Disbursement API, separate from the core functional folders (Authentication, Wallet, Disbursement, Authorization). It’s explicitly scoped to development and QA purposes only.
Repost Transaction
- Purpose: re-triggers the webhook callback for an existing transaction, identified by
reference_no. - Use case: testing your webhook handler’s response to transaction status events (e.g.,
success,failed) without having to initiate a brand-new payout every time you want to test delivery.
This endpoint must not be used in a production environment. It exists purely to simulate webhook delivery in sandbox/QA.
Why a Repost Utility Matters
Webhook integrations are notoriously hard to test reliably, because triggering a real event usually means creating a real transaction and waiting for it to settle. Repost Transaction sidesteps that: point it at a reference_no you already have, and it re-fires the callback so you can confirm your endpoint:
- Receives the payload correctly.
- Parses the status (
success/failed) correctly. - Responds appropriately (e.g., with the HTTP status your webhook sender expects to consider delivery successful).
Practical Testing Checklist
Authenticate
Authenticate against sandbox (api-stg.epaygames.io / disbursement-api-stg.epaygames.io) using the test credentials above.
Run a full happy-path flow per API
- Payments:
Create Token→Get Channels→Calculate Total w/ Fee→Generate Transaction→Get Transactions. - Disbursement:
Create Access Token→Get Wallets→Get Channels/Get Receiving Banks→Process Disbursement→Get Transactions.
Set a real, reachable callback_webhook_url
e.g., a webhook.site URL during early testing, as used in this collection’s own examples — then confirm you receive a callback after a transaction settles.