M-PESA integration: from sandbox to go-live

What you need from Safaricom, how callbacks work, and the checks to run before taking real payments.

Updated 3 October 20262 min read15 views0 found this helpful
Applies toM-PESA logo

Accepting M-PESA on your website or system involves a sandbox test phase and a go-live approval from Safaricom.

How an M-PESA payment request travels between your system and the customer's phone
How an M-PESA payment request travels between your system and the customer's phone

What you need

  • An active paybill or till number registered to your business.
  • A Safaricom Daraja developer account.
  • A public HTTPS callback URL on your server.
  • The business administrator who can approve the go-live request.

Steps

  1. Build in the sandbox with test credentials.
  2. Test every outcome — success, wrong PIN, cancelled, insufficient funds and timeout.
  3. Request go-live on the Daraja portal and complete the approval with the business admin.
  4. Swap credentials to production and run a small real payment.
  5. Reconcile — confirm the payment appears in your system and your M-PESA statement.

Enet builds and supports M-PESA for websites, WHMCS and WooCommerce and others.

#M-PESA#Daraja#STK Push#go-live

Was this article helpful?

Your vote helps us write better guides.

Keep reading

Related articles

Still stuck?

Talk to our support team

Open a ticket

Best for anything technical. Every reply is tracked.

Submit a ticket

Call our Nairobi team

+254 726 872 512 · +254 722 917 455

Call now

Message us

Send a question and we'll reply by email or phone.

Contact support
Launch today

Powering Your Online Success!

Domain, hosting, email and SSL from one local team — set up in minutes and backed by people you can call.

  • Free SSL
  • Free migration
  • 99.9% uptime
  • 24/7 expert support

Start with your domain

Check availability, then add hosting in the same order.

Prefer to talk? Call +254 726 872 512