[email protected]Self-hosted point of sale and business system
Back to all apps

M-Pesa

M-Pesa at the till: the prompt goes to the customer's phone.

The till sends a payment prompt, the customer enters their PIN, and the sale finishes by itself once Safaricom confirms. Payments to your till or paybill number are found at the till too.

A payment prompt on the customer's phone
Integration

Works withPoint of SaleInvoicing

A payment prompt on the customer's phone

The cashier types the Safaricom number and sends the request. The customer sees the exact amount and approves it with their PIN.

Who M-Pesa at the till is for

Shops where most customers pay by phone

No more reading confirmation messages over the counter.

Restaurants taking M-Pesa at self-order

Guests order, then pay from their own phone.

Owners worried about fake messages

A sale only closes when Safaricom itself confirms the money.

The sale waits for Safaricom

The till waits while the customer pays and carries on by itself when the money is in. A forged SMS cannot close a sale.

The sale waits for Safaricom

Payments made to your till or paybill

Customers who pay from the M-Pesa menu or by scanning your QR are matched at the till by amount, and each payment is used once.

Payments made to your till or paybill

Look a payment up by its code

A customer who already paid can read out the receipt code, and the cashier finds that exact payment.

Look a payment up by its code

Sandbox first, then production

Enter your Daraja details, test against Safaricom's sandbox, register your C2B addresses and switch to production. Recent payments are listed on the same page.

Sandbox first, then production

From your account to your first real payment

What you get

  • M-Pesa as a payment method at any register
  • Payment prompt to the customer's phone, confirmed by M-Pesa before the sale completes
  • Pay links and self-order payments
  • Test mode against Safaricom's sandbox
  • Every existing M-Pesa record stays in place when the add-on is turned off or on

Set it up

  1. 1Open Settings > Apps & Features, find M-Pesa and click Activate.
  2. 2Open Settings > M-Pesa, start in Sandbox, fill in the Daraja details and save. Click Test connection: it tells you whether Safaricom accepted them.
  3. 3Click Register C2B URLs once. Payments customers make straight to your number only reach this system after that.
  4. 4Open Point of Sale > Configuration > Payment Methods and click New. Set Payment Method Type to Payment Terminal and Integrate with to M-Pesa, and pick the M-Pesa configuration.
  5. 5Under Point of Sale, click the registers that should offer this method, then Save.
  6. 6Ring up a small sale and try it. When it works, switch Settings > M-Pesa to Production with your live details, and click Register C2B URLs again.

Your keys and where to find them

Consumer Key and Consumer Secret
On the Daraja portal open your app; both are on its page.
Passkey
Safaricom gives you the Lipa na M-Pesa Online passkey when your number goes live. The sandbox has its own.
Business Shortcode (auth) and Shortcode Type
The head office or paybill number your app works under, and whether you take money on a Buy Goods till or a paybill.
Till Number (PartyB) and Store Number (C2B)
The number customers pay. Leave them empty if it is the same as the shortcode.
Business Name
The name shown on the customer's prompt.

Day to day

  • At the till the cashier chooses M-Pesa, enters the customer's Safaricom number and sends the request. The customer enters their PIN and the till confirms by itself, with the M-Pesa receipt on the sale.
  • If the customer pays the till or paybill number directly instead, the cashier listens for the payment: the till finds it by the amount and links it to the sale, and each payment can be used once.
  • A customer who already paid can give the cashier the receipt code to look it up.
  • Recent payments are listed on Settings > M-Pesa.

M-Pesa

M-Pesa is included with OptiraPOS Core

  • A payment prompt on the customer's phone
  • The sale waits for Safaricom
  • Payments made to your till or paybill
  • Look a payment up by its code
  • Pay links and self-order
  • Secure checkout by Paystack.PaystackVISAMastercard

Included in core: OptiraPOS Core

Questions

Questions we hear first

See all questions
What do I need to start?

A Safaricom till or paybill number, and an app on the Safaricom Daraja developer portal with the Lipa na M-Pesa products on it.

What if test connection fails?

Copy the Consumer Key and Consumer Secret again, and check they belong to the environment you chose: Sandbox or Production.

What if the customer gets no prompt?

Check the number is a Safaricom line, and the shortcode and passkey belong together.

What if the cashier can't find a payment?

Click Register C2B URLs in the M-Pesa settings, then check the amount typed at the till matches the payment.

What if nothing happens?

An Inactive connection is switched off. Open it and switch the state to Test or Live.

Is it a one-time payment?

Yes. You pay once and keep that version for good. The first year of updates and support is included.

M-Pesa that confirms itself, sale after sale.

Read the step-by-step guide, or add M-Pesa today.

  • One-time, yours to keep
  • 7 days free, no card needed
  • On your own server, or hosted by us