Skip to content
Test mode: payments are simulated. No real money moves.
MutexPay

M-Pesa payments for Kenyan businesses

Take M-Pesa payments on your own paybill, till or bank account.

MutexPay asks your customer's phone to confirm. The money lands in your account, and your server hears about it first.

Plans are paid by M-Pesa. An ID check and two-factor authentication are required.

Example payment

Ksh 1,500.00

Order ORDER-12345 · Paybill 888123

Completed
  1. STK prompt sent to the phone 10:42:03
  2. Customer entered their PIN 10:42:21
  3. M-Pesa confirmed · receipt NLJ7RT61SV 10:42:22
  4. Webhook delivered to your server HTTP 200
webhook
{
  "Event": "payment.completed",
  "ResponseCode": 0,
  "TransactionAmount": 1500,
  "TransactionReceipt": "NLJ7RT61SV",
  "TransactionReference": "ORDER-12345"

STK push sent

Enter M-Pesa PIN

Payment received

Ksh 1,500.00

How it works

Four steps from signing up to knowing a customer has paid.

  1. 01

    Create an account

    Sign up, pick a plan and pay for it by M-Pesa. We check your ID and you turn on two-factor authentication.

  2. 02

    Connect an account

    Add the paybill, till number or bank account where M-Pesa should send the money.

  3. 03

    Ask for a payment

    One API call sends the prompt to your customer's phone. You can also try it from the Test payments page.

  4. 04

    Get told first

    M-Pesa reports the result. We check it and send a signed webhook to your server.

What you can do

Everything here works today. Nothing on this page is a promise for later.

Paybill, till or bank account

The money goes to your own M-Pesa account. A bank account is reached through the bank's paybill, with the account number as the reference.

Paybill number
Customer pays your paybill
Your reference
Till number
Customer buys goods
Till name and your reference
Bank account
Customer pays the bank's paybill
The account number

Only M-Pesa decides

A payment counts as paid only when M-Pesa reports it. Nothing a browser or an API client sends can mark it as paid.

Reported by M-Pesa, checked by us

One API

Start a payment, read its status and move wallet money. JSON in, JSON out, with your email and API key.

POST /api/v1/initiatestkpush
{
  "amount": 1500,
  "msisdn": "0712345678",
  "reference": "ORDER-12345",
  "account_id": "GP12345678"

A wallet you control

Add money by M-Pesa, send it to any M-Pesa number, pay another business, or move it between wallets.

  • Deposit
  • Send to a phone
  • Wallet to wallet
  • Checkout

Signed webhooks

Every result is signed. A delivery that fails is retried and logged, and you can send it again.

X-MutexPay-Signature: t=1712345678,v1=…

Know your customers

Payments are grouped by phone number, with each customer's history and receipts in one place.

Example of payments grouped by customer phone number
CustomerPaymentsReceived
254712 345 6783Ksh 4,100.00
254798 765 4321Ksh 1,500.00
254701 234 5672Ksh 2,300.00

For developers

The same payments, as an API.

Every request is a JSON POST signed in with your email and API key. Start a payment, read its status, move wallet money, and get a signed webhook when it is done.

  • Nine endpoints for payments and the wallet
  • Webhooks signed with HMAC-SHA256 and retried when they fail
  • A test mode where M-Pesa is simulated and no money moves

The request only asks the phone to confirm. The payment is paid when the webhook says payment.completed. A delivery that fails is retried up to five times.

Plans

Pay for a plan by M-Pesa. Each plan says how many connected accounts it allows.

Monthly Plan

KES 500

per /month

1 month subscription

  • Mpesa STK Push Integration
  • Real-time payments
  • Unlimited transactions
  • No transaction fees
Get started

Quarterly Plan

Most Popular

KES 1,350

per /3 months

3 months subscription

  • Mpesa STK Push Integration
  • Real-time payments
  • Unlimited transactions
  • No transaction fees
Get started

Semi-Annual Plan

KES 2,550

per /6 months

6 months subscription

  • Mpesa STK Push Integration
  • Real-time payments
  • Unlimited transactions
  • No transaction fees
Get started

Yearly Plan

Best Value

KES 4,800

per /year

12 months subscription

  • Mpesa STK Push Integration
  • Real-time payments
  • Unlimited transactions
  • No transaction fees
  • Priority support
Get started

Built to be safe with money

A payment platform is only useful if you can trust what it tells you. These are the rules we built to.

  • ID is checked first

    Nobody takes payments until an administrator has approved their ID document.

  • Two-factor on every account

    Sign-in asks for a password and a code from an authenticator app. A fingerprint or passkey can be used instead of the password.

  • Every admin action is recorded

    What an administrator did, to which account and when, is kept in the audit log.

  • Test mode comes first

    Try the whole flow with simulated M-Pesa before any real money moves.

Questions people ask

Something else? Write to us.

Which M-Pesa accounts can I connect?

A Safaricom paybill number, a till number (Buy Goods) or a bank account. A bank account is paid through the bank's own M-Pesa paybill, with the customer's account number as the reference.

Does the money pass through MutexPay?

No. M-Pesa sends it straight to your own paybill, till or bank account. The wallet is optional and separate: it only holds what you have put into it.

How do I know a customer has paid?

M-Pesa reports the result of each payment. MutexPay checks that the report matches the payment, then sends a signed webhook to your server. You can also ask the API for the status of a payment at any time.

Can I try it before going live?

Yes. New installations start in test mode, where M-Pesa is simulated and no money moves. Every page says so. You can choose whether the test customer pays, cancels or fails.

How do I pay for a plan?

By M-Pesa when you choose the plan, or from your wallet later. The plans and what each one includes are listed on the pricing page.

What do I need to sign up?

Your name, an email address, a phone number and an ID (national ID, passport or alien ID). Every account also needs an authenticator app for two-factor authentication.