Sandbox Environment
Use yoursk_test_ API key to access the sandbox. The same production endpoint is used — the key determines the environment.
MOCK Operator
TheMOCK operator simulates the full mobile money payment flow without real charges. Use it for:
- Development and testing
- CI/CD pipelines
- Demo environments
Simulating Payment Flows
In sandbox mode, payments are created inCREATED status. Use the confirm endpoint to simulate the customer approving the payment:
The confirm endpoint is only available in sandbox mode. In production, payments are confirmed by the customer through their mobile money app.
Testing Webhooks
Webhooks work the same way in sandbox and production. Set up a webhook endpoint and you’ll receive events for sandbox payments too.Moving to Production
When you’re ready to go live:- Create a
sk_live_API key in the dashboard - Replace
MOCKwith the real operator (CVMOVELorUNITEL_TMAIS) - Ensure your webhook endpoints are accessible from the internet
- Test with a small real payment before going live