Understand the difference between Fapshi’s test (sandbox) and live environments, and how to switch between them securely.
Fapshi provides two separate environments for developers:
Each environment is designed to serve a specific purpose and requires its own credentials and base URL.
The Sandbox environment is used for testing and development. It allows you to explore how the Fapshi API works without using real money.
Although no real transactions occur, the API behaves exactly like the live environment, ensuring a seamless transition from testing to production.
When testing local payment methods (e.g., Mobile Money), you can simulate success or failure depending on the number used.
Status | Provider | Test Numbers |
---|---|---|
✅ Success | MTN Cameroon | 670000000, 670000002, 650000000 |
Orange Cameroon | 690000000, 690000002, 656000000 | |
❌ Failure | MTN Cameroon | 670000001, 670000003, 650000001 |
Orange Cameroon | 690000001, 690000003, 656000001 |
If you use any number not listed above, the transaction outcome will be determined randomly.
The Live environment is where real transactions happen. To use this environment:
Live API keys are sensitive. You’ll only see your apikey
once, so copy and store it safely. You can generate a new key if compromised — this will immediately revoke the old one.
When moving your application from testing to production:
Replace your Sandbox credentials (apiuser
and apikey
) with your Live credentials
Switch the base URL from: https://sandbox.fapshi.com
to https://live.fapshi.com
Double-check your integration for live readiness
Once you switch to the live environment and update your credentials and base URL, you’re good to go!
Need help? Reach out to support@fapshi.com or visit our Help & Support Center.