Sandbox Environment
AcountPay provides a full sandbox environment for testing your integration before going live. Sandbox and production are completely isolated — separate databases, credentials, and merchants.| Sandbox | Production | |
|---|---|---|
| Base URL | https://sandbox.api.acountpay.com/v1 | https://api.acountpay.com/v1 |
| Dashboard | Toggle to “Sandbox” at partner.acountpay.com | Toggle to “Production” |
| Credentials | Generated in sandbox mode | Generated in production mode |
| Payments | Token sandbox banks (test flows) | Real bank payments |
Getting Started
1. Switch to sandbox mode
Open the Partner Dashboard and click the environment toggle in the sidebar to switch to Sandbox. You’ll see an orange banner confirming you’re in sandbox mode.2. Generate sandbox credentials
Navigate to API Credentials while in sandbox mode and generate a new credential pair. These credentials only work against the sandbox API.3. Create a test merchant
In sandbox mode, go to Merchants → Add Merchant and use the Quick Test Merchant form to instantly create a pre-activated merchant. No onboarding required. You can also create test merchants via the API:The
POST /partner/merchants/test endpoint is only available in the sandbox environment. It returns 404 on production.4. Create a test payment
Use the test merchant’sclientId to create a payment:
paymentUrl in a browser. You’ll see the Token sandbox bank selector — choose any test bank and complete the payment flow.
5. Test webhooks
Register a webhook endpoint (e.g. using webhook.site) while in sandbox mode:6. Verify status polling
Poll the payment status to confirm your integration handles all statuses correctly:Key Differences from Production
- Test merchants can be created instantly without onboarding via
POST /partner/merchants/test - Payments go through Token’s sandbox — no real money is moved
- Credentials are environment-specific — sandbox credentials do not work on production and vice versa
- Webhooks registered in sandbox only fire for sandbox events
Going Live
When you’re ready to go live:- Switch the dashboard toggle to Production
- Generate production API credentials
- Create merchants using the standard onboarding flow (
POST /partner/merchants) - Update your integration’s base URL to
https://api.acountpay.com/v1 - Replace sandbox credentials with production credentials

