Overview
The Fossapay sandbox environment allows you to test your integration without processing real transactions or affecting real customer data.The sandbox environment mimics production behavior exactly, making it easy to transition to live mode when you’re ready.
Getting Sandbox Access
- Sign up at dashboard.fossapay.com
- Your account automatically includes sandbox access
- Get your test API keys from Settings → API Keys
- Start testing immediately - no approval needed
Sandbox vs Production
| Feature | Sandbox | Production |
|---|---|---|
| API Keys | fp_test_sk_* | fp_live_sk_* |
| Real Money | No | Yes |
| Bank Transfers | Simulated | Real |
| Webhooks | Fired | Fired |
| Rate Limits | Same | Same |
| Base URL | https://api.fossapay.com/v1 | https://api.fossapay.com/v1 |
Both environments use the same base URL. The environment is determined by your API key (test vs live).
Simulating Transactions
Simulating Virtual Account Credits
In sandbox mode, you can simulate incoming payments to virtual accounts:Simulating Payout Outcomes
Control payout outcomes in sandbox using special account numbers:| Account Number | Outcome |
|---|---|
0000000001 | Success (instant) |
0000000002 | Success (delayed 30s) |
0000000003 | Failed - Invalid account |
0000000004 | Failed - Insufficient funds |
0000000005 | Pending (manual simulation needed) |
Test Bank Codes
Use these bank codes for testing in sandbox:| Bank Code | Bank Name | Notes |
|---|---|---|
058 | Guarantee Trust Bank (GTBank) | Always succeeds |
057 | Zenith Bank | Always succeeds |
044 | Access Bank | Success with 5s delay |
033 | United Bank for Africa (UBA) | Success with 5s delay |
999 | Test Bank | Simulates random outcomes |
Test Card Details
For testing card-related features: Successful Card:Webhook Testing
Webhooks work the same way in sandbox as in production:- Configure your webhook URL in the dashboard
- Perform actions in sandbox (create accounts, simulate payments, etc.)
- Receive webhook events at your configured URL
Testing Webhook Endpoints
Sandbox Limitations
Sandbox Data Reset
Sandbox data is automatically cleared every 30 days. To manually reset your sandbox:What gets reset?
What gets reset?
- All virtual accounts
- All transactions
- All wallets (balances reset to 0)
- All customers
- Webhook logs
- API keys
- Webhook configurations
- Business settings
Testing Checklist
Before going live, ensure you’ve tested:- Create virtual accounts
- Simulate incoming payments
- Receive and verify webhook events
- Process single payouts
- Process bulk payouts
- Handle payout failures
- Create and manage wallets
- Wallet-to-wallet transfers
- Transaction reconciliation
- Error handling for all scenarios
- Idempotency for duplicate requests
- Rate limit handling
Monitoring Sandbox Activity
View all sandbox activity in your dashboard:- Go to dashboard.fossapay.com
- Toggle to Test Mode (top right)
- View transactions, webhooks, and logs
Going Live
When you’re ready to go live:1
Complete KYB
Submit your business verification documents
2
Get Approved
Wait for approval (usually 24-48 hours)
3
Switch API Keys
Replace test keys with live keys in your environment
4
Deploy
Deploy to production and start processing real transactions
Ready to Go Live?
Start your business verification
Support
Need help with sandbox testing?- Email: [email protected]
- Documentation: Check our guides
- Dashboard: dashboard.fossapay.com