Skip to main content
In sandbox, the phone number, email or account number you send decides the outcome. Nothing reaches M-PESA, Airtel or a bank.

Rules

  • Use your sandbox keys. See Environments.
  • Use a new externalReference for every new transaction. A reused one returns 409 DUPLICATE_EXTERNAL_REFERENCE.
  • Test the failure path as carefully as the success path.
  • Confirm outcomes the same way you will in production: by webhook, or with Get transaction.
  • Need a webhook on demand? Call Simulate webhook with the transaction’s externalReference.

Checkout

Create a sandbox checkout session, open the link, and enter these values on the hosted page.

Mobile money charge

Bank transfer

Payouts

Account names can be anything in sandbox.