> ## 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.

# Set up sandbox credentials

> Use Moflay's sandbox environment to test M-Pesa flows before you move to live Daraja credentials.

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](/first-payment) or
[Quickstart with HTTP](/first-payment-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

<Steps>
  <Step title="Create a Daraja sandbox app">
    Sign in to the [Daraja portal](https://developer.safaricom.co.ke/) and
    create a sandbox app with the M-Pesa online product enabled.
  </Step>

  <Step title="Copy the test credentials">
    Save the sandbox consumer key and consumer secret from Daraja.
  </Step>

  <Step title="Open Moflay credentials">
    Go to [Credentials](https://app.moflay.com/credentials) in the Moflay
    dashboard and switch to the sandbox environment.
  </Step>

  <Step title="Save the values">
    Paste the sandbox credentials and save the configuration.
  </Step>
</Steps>

## 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.

## Related pages

* [Daraja callbacks](/daraja/handling-callbacks)
* [Set up production credentials](/daraja/setup-production-credentials)
* [Payment statuses & outcomes](/payments/transaction-statuses)
* [Make your first payment](/first-payment)
