Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.moflay.com/llms.txt

Use this file to discover all available pages before exploring further.

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. You do not need to create a Daraja sandbox app before your first Moflay sandbox payment. Start with Quickstart with SDK or Quickstart with HTTP, then return here only if you want to bring your own Daraja sandbox credentials.

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.