Key takeaways
- The best experience is STK push: the customer taps “Pay”, an M-Pesa prompt appears on their phone, they enter their PIN, and your website knows the moment it is paid.
- To connect M-Pesa to a website you need a Till (Buy Goods) or Paybill number and access to Safaricom’s Daraja developer platform, or a payment provider that handles it for you.
- Never confirm an order from a screenshot. Confirm it from Safaricom’s own notification to your system, or from the SMS on the business phone.
- Our online shops include M-Pesa, card and bank payments from KSh 45,000. For payments that land as SMS on a phone, Linkaa shares them with your whole team.
In Kenya, an online shop without M-Pesa is a shop with the door half-closed. People pay with the phone already in their hand. This guide explains how to add M-Pesa to your website: the ways to take it, what you need from Safaricom and how to apply, what it costs, and how to make sure every payment you count is real.
The three ways to take M-Pesa on a website
| Method | How it feels to the customer | Payment confirmed | Best for |
|---|---|---|---|
| STK push (Daraja) | Taps “Pay”, enters PIN on the prompt | Automatically, in seconds | Online shops, bookings, deposits |
| Till or Paybill shown on the page | Opens M-Pesa, types the number and amount | By hand, or by matching the code | Low volumes, quotes, invoices |
| Payment provider | A checkout page with M-Pesa and card | Automatically | Businesses that also want cards |
STK push: the one customers prefer
With STK push, the website does the work. The customer enters their phone number at checkout, a prompt pops up on their phone showing the amount and your business name, and they enter their PIN. Safaricom then tells your website the payment succeeded, and the order is marked paid without anyone touching it.
You will also see it called Lipa na M-Pesa Online, or by Safaricom’s own name on its developer portal: M-Pesa Express, described there as a way for a business to start a Buy Goods or Paybill payment from the customer’s account. Same thing, three names.
- No mistyped Till numbers or wrong amounts
- The order and the payment are matched automatically
- Works at 2am, when nobody is watching the phone
- A receipt can go to the customer straight away
What you need from Safaricom
- A Till (Buy Goods) or Paybill number registered to your business. If you do not have one, apply on Safaricom’s M-PESA Business Hub: create an account, choose “Apply for a Till/Paybill”, pick the product and upload the documents it lists for your type of business. Safaricom says applying is free. You follow the application under “My Applications”, and only the person who applied can see its progress.
- Access to Safaricom’s Daraja platform: the developer portal (now Daraja 3.0) that connects M-Pesa to websites and apps. A company or an individual can register, and your developer builds and tests the M-Pesa integration there first, in a test (“sandbox”) app.
- Going live. Once it works in testing, the connection is switched to your real Till or Paybill. Your developer handles it with you.
- A secure website (https) for Safaricom to send payment confirmations to.
Pochi la Biashara and personal lines: some small businesses are paid on Pochi or a personal number. Customers can still pay these from your website’s instructions, but check with Safaricom whether automatic confirmation is available for your account. Where it is not, the payment SMS on the business phone is the proof. That is exactly the problem Linkaa solves.
Paybill or Till: which is better for a website?
Both connect to a website, and STK push can pay either one. The difference is the reference that comes with each payment.
| Till (Buy Goods) | Paybill | |
|---|---|---|
| Paying by hand | Till number and amount | Business number, account number and amount |
| A reference on each payment | No | Yes: the account number, such as an invoice or customer number |
| Suits | Shops and services where people pay for what they just chose | Invoices, school or membership fees, deposits you match to a booking |
A Till you already use in your shop can be connected to the website too, since M-Pesa Express pays a Till or a Paybill. With STK push the website fills in the reference itself, so the customer never types an account number either way.
What M-Pesa on a website costs
| Cost | Who charges it | What to expect |
|---|---|---|
| Getting a Till or Paybill | Safaricom | Free to apply for |
| Building the checkout | Your developer | Included in our Basic online shop, from KSh 45,000, and in our Advanced website |
| Transaction charges | Safaricom | A charge per payment — check the current tariff for your Till or Paybill in Safaricom’s Business Hub FAQ |
| Provider fee (if used) | The payment provider | Usually a percentage of each payment |
| Daraja access | Safaricom | Registration on the developer portal; check its current terms when you sign up |
Which option fits your business?
| Your situation | Best option | Why |
|---|---|---|
| You sell products online every day | STK push | Orders are confirmed automatically, even at night |
| You take deposits for bookings or hires | STK push | The deposit and the booking are matched without a phone call, as with M-Pesa deposits for bookings |
| You send quotes and get paid later | Till or Paybill on the invoice page | Few payments, each checked against an invoice |
| You also need card payments | A payment provider | M-Pesa and cards in one checkout |
| You are paid on Pochi or a personal line | Clear instructions + SMS confirmation | Confirm from the business phone — shared with your team |
From zero to taking M-Pesa online, step by step
- Get a Till or Paybill in your business name if you do not have one. Automatic confirmation on a website works through these.
- Decide on the checkout: STK push on its own, or a provider that also takes cards.
- Your developer builds and tests the checkout in Safaricom’s test environment, with test payments that move no real money.
- Go live with your real Till or Paybill details, and make one small real payment to prove it end to end.
- Check the order trail: the payment, the order and the receipt should all match in your admin panel. If you advertise, the same paid order can be reported to Facebook and Instagram as a sale, as our guide to Meta Pixel vs Conversions API explains.
- Train whoever handles orders: what a paid order looks like, and what to do if a customer says they paid but nothing shows.
Reconciliation: making sure every shilling matches an order
Reconciliation means checking what you were paid against what you sold, and when the website confirms payments automatically, most of that is done for you. A short daily check still catches problems early:
- Compare the day’s paid orders with the day’s M-Pesa statement or payment feed.
- Look for payments with no order (a customer paid but the order failed) and follow up the same day.
- Look for orders marked unpaid that the customer says they paid, search the M-Pesa code before anything else.
- Keep the M-Pesa transaction code on every order; it is the one reference both you and Safaricom recognise.
Safaricom’s Business Hub also shows Lipa na M-Pesa Online payments next to your other Till and Paybill collections, so the statement you compare against can come from one place.
How to stop fake payments for good
Here is how the fake-screenshot scam works. A customer shows a message that looks real, staff release the goods, and the money never arrives, because the “payment” was only ever a picture. The fix is simple: never confirm from anything the customer shows you.
- On the website: only mark an order paid when Safaricom’s own confirmation reaches your system.
- In the shop: confirm from the SMS on the business phone, and make sure staff can see it without calling the owner.
- Before you close each day: check every order against an M-Pesa payment, not against memory.
That second point is hard when the phone that receives the money is in the owner’s pocket. Linkaa sends every M-Pesa and bank payment message from that phone to a live dashboard your whole team can see.
Six checkout details that increase paid orders
- Put M-Pesa first. It is how most Kenyan customers want to pay.
- Accept 07… and 01… numbers in any format, with or without 254, spaces or dashes.
- Show the total including delivery before the prompt appears, so there are no surprises.
- Tell them to watch their phone: “A prompt is on its way to 07XX…” reduces abandoned payments.
- Handle “I didn’t get the prompt” with a resend button and the Till number as a fallback.
- Send a receipt by SMS, WhatsApp or email the moment payment lands.
Security: what never to do
- Never ask for a customer’s M-Pesa PIN: on a form, on the phone, anywhere. STK push means you never need it.
- Never put your Daraja keys in the website’s visible code. They belong on the server, out of reach.
- Never mark an order paid from the browser. Only Safaricom’s confirmation to your server counts.
Getting started
If you already sell on WhatsApp and Instagram, an online shop with M-Pesa is the natural next step: your products, your prices and a pay button, open all night. See what is included in an ecommerce website with M-Pesa, read what a website costs in Kenya, or book a free call and we will look at your Till or Paybill set-up with you.
Sources: read 12 November 2026: Safaricom’s Daraja developer portal and its list of APIs · M-PESA Business Hub FAQs (updated 3 July 2026). Transaction charges are not quoted here because Safaricom changes them; check the current tariff for your Till or Paybill.
Want this done for you, or checked? Message us on WhatsApp about this guide.
Ask us on WhatsAppQuestions people ask
Can I accept M-Pesa on my website without a Paybill?
You can connect a Till (Buy Goods) number, which many small businesses already have. Automatic confirmation on a website works through a Till or Paybill. With a personal line, customers can still pay, but someone has to confirm each payment by hand.
How much does M-Pesa integration cost?
There are three parts: setting it up on the website (included in our Basic online shop from KSh 45,000), Safaricom’s transaction charges on each payment, and, if you use one, a payment provider’s fee. Is the M-Pesa API itself free? Applying for a Till or Paybill is free, Safaricom says, and Daraja is a registration on its developer portal; what you pay is the charge on each payment received. Check Safaricom’s current tariff for your Till or Paybill.
Paybill or Till: which should my website use?
Either works with STK push, because Safaricom’s prompt can pay a Till or a Paybill. Choose a Paybill when each payment needs its own reference, such as an invoice or customer number. A Till is simpler when customers just pay for what they bought.
Can I take M-Pesa on a website that is not an online shop?
Yes. Booking deposits, invoice payments and fees can all be paid by M-Pesa from an ordinary website. Our Advanced website package includes M-Pesa or a connection to your own system, and online shops include an M-Pesa checkout from the Basic package.
What is M-Pesa STK push?
STK push is when the website sends a payment request straight to the customer’s phone. A prompt appears with the amount and your business name; they enter their PIN and the payment is done: no typing of numbers or account references.
How do I stop fake M-Pesa screenshots?
Do not trust a screenshot. Confirm payment from Safaricom’s callback to your website, or from the confirmation SMS on the business phone. A tool like Linkaa puts those SMS in front of your whole team, so staff can check without calling the owner.
Can customers pay by card as well?
Yes. Most online shops in Kenya offer M-Pesa first and card as a second option, usually through a payment provider. We set up both, with orders and receipts in your admin panel.
Was this guide useful?
Your answer tells us what to write next.
Thank you: that helps.
Tell us what was missing






