Quick Start
For the sandbox environment, Moflay uses preconfigured shared credentials, so you can start testing immediately without any configuration. Simply navigate to the Moflay Dashboard and start making test payments right away.Use Your Own Sandbox Credentials (Optional)
You can also use your own Daraja sandbox credentials for testing if you prefer to have full control over your test environment.
1
Create a Daraja Sandbox App
- Navigate to the Daraja Website.
- Click on
Dashboard
in the navigation bar. - Click on
My Apps
in the sidebar. - Click on
Create Sandbox App
. - Enter your Application Name and select the
Lipa na M-Pesa Sandbox
checkbox. - Click on
Create App
button.
2
Copy Your Consumer Key and Secret
- Once created, your app will appear in the sandbox apps list.
- Copy the Consumer Key and Consumer Secret.
3
Configure Consumer Key and Secret in Moflay Dashboard
- Navigate to Moflay Dashboard Credentials.
- Ensure you’re in the Sandbox environment.
- Paste your Consumer Key and Consumer Secret.
Next Steps
Once you’ve tested your integration in sandbox:- Setup Production Credentials - Learn how to go live with real payments
- Handle M-Pesa Callbacks - Configure webhook endpoints for payment notifications