Sandbox URL
Send your requests to
https://sandbox.mysubwallet.ng with your normal API key.Sandbox key
Or use your
sk_test_… key against the normal https://api.mysubwallet.ng URL.Base URLs
| Environment | Base URL | Effect |
|---|---|---|
| Production | https://api.mysubwallet.ng | Real transactions — your wallet is charged. |
| Sandbox | https://sandbox.mysubwallet.ng | Test mode — simulated, never charges your wallet. |
Example
Just point the request at the sandbox URL — everything else stays the same:Sandbox response
Purchases are simulated. Read-only endpoints — Check Balance, validation, and the catalogs — return your real data on the sandbox URL too, so you can validate against real plan IDs and customer lookups.
Simulate a failure
Add"sandbox_status": "fail" to any request to test your error handling:
Response
Going live
When you’re ready, switch the base URL tohttps://api.mysubwallet.ng (and use your live key) — same endpoints, same payloads. Confirm sandbox is no longer in the response and your wallet balance changes as expected.

