Sandbox testing
Test payment flows before going live
New MoPay projects start in sandbox. Use your sandbox API key and preset mobile money numbers to test success, pending, failed, and cancelled payment outcomes without moving real money.
Test checklist
Create an account and use the sandbox project API key
Create a payment session or payment link
Pay using a preset M-Pesa or EcoCash number
Verify the final status server-side before fulfilling
Project environment: SANDBOX
No live provider debit
Server-side verification still required
Simulate the outcomes your app must handle
M-Pesa sandbox
Success
52211111Pending then success
52222222Failed
52233333Cancelled
52244444EcoCash sandbox
Success
63211111Pending then success
63222222Failed
63233333Cancelled
63244444Same integration path
Use the same payment-session and verification APIs that production uses.
No approval needed
Start testing immediately after creating your MoPay account.
Production request later
Request production access from the dashboard when your flow is ready.