Skip to main content
Start in sandbox to validate your integration without sending real money.

Default sandbox path

For most teams, the fastest option is to use the sandbox setup already available in Moflay and begin testing immediately.

When to add your own sandbox credentials

Bring your own Daraja sandbox credentials if you want:
  • Full control over the test app in Daraja
  • A setup that more closely matches your production configuration
  • To validate your own consumer key and consumer secret before launch

Add your own sandbox credentials

1

Create a Daraja sandbox app

Sign in to the Daraja portal and create a sandbox app with the M-Pesa online product enabled.
2

Copy the test credentials

Save the sandbox consumer key and consumer secret from Daraja.
3

Open Moflay credentials

Go to Credentials in the Moflay dashboard and switch to the sandbox environment.
4

Save the values

Paste the sandbox credentials and save the configuration.

Verify the result

Use a sandbox API key and send a test payment with the SDK or API. Then confirm the transaction appears in the sandbox dashboard.