sandbox and production.
Sandbox
Use sandbox while you are building and validating your integration.- Safe for testing
- Separate API keys
- Separate data from production
- Shared or custom sandbox credentials depending on your setup
mof_test_.
Production
Use production only when you are ready to accept real payments.- Requires your own live Daraja credentials
- Uses separate API keys and transaction data
- Sends real payment requests through your configured till or paybill
mof_live_.
Why the separation matters
Environment isolation helps you:- Avoid mixing test and live traffic
- Keep credential mistakes from affecting real customers
- Validate your webhook and transaction flows before launch
Recommended workflow
- Build in sandbox.
- Create and test your API integration.
- Configure production Daraja credentials.
- Generate production API keys.
- Switch your deployment to production only after verification.