On this page
TL;DR
- Show live STK status, offer a resend after about 30 seconds and print a paybill fallback on the payment screen.
- Ask only for name, phone and delivery address, and offer an account after payment instead of before.
- Hold the buyer on a confirming screen until your server marks the order paid. Then send an SMS or WhatsApp receipt.
- Reserve stock when it goes into the cart and refuse payment for anything you cannot reserve.
Most Kenyan ecommerce checkout losses happen after the customer has decided to buy. They tap “Pay with M-PESA”, nothing arrives on the phone, and they close the tab. Or the site demands an account first, and they never come back from the verification email.
That is friction, and five fixes remove most of it. They are listed in the order that usually recovers the most orders.
1. Handle a slow STK push out loud
This is the most common single failure. The customer taps pay, and your system sends the STK push. Then the phone stays quiet for 8, 15 or 30 seconds. The page shows a spinner, and the customer decides the site is broken.
STK delivery is fast most days and slow on some, such as paydays and busy shopping weekends. You cannot fix Safaricom’s network. You can stop the wait from looking like a failure.
- Say what is happening. “Sending the M-PESA prompt to 0712 345 678” tells the customer something, while a spinning circle tells them nothing.
- Offer a resend. After about 30 seconds with no prompt, show a “Resend prompt” button. People who want to pay will press it.
- Give a way out. “No prompt? Pay by paybill 123456, account ORD-1042.” A paybill fallback keeps the order alive when STK is misbehaving.
- Confirm in the browser too. A payment approved on the phone should show as paid on the page within a few seconds.
That last point needs your server to combine Daraja callbacks with its own status checks. Then a late or missing callback cannot leave a paid order stuck. M-PESA webhooks vs polling covers the pattern.
2. Let people pay as guests
The customer is on a phone with their M-PESA PIN ready. Your checkout asks for an email, a password, the password again and a terms box. Then it sends a verification email, and they must log in again before paying.
That puts six screens between wanting the item and paying for it. Many buyers never return from the verification email. The rest invent a password they will forget, and the reset email later lands in spam.
Ask only for what you need to deliver: name, phone and delivery address. Offer an account after payment, so customers can track their orders. Plenty will take it, and those who do not have still paid.
The one fair reason to require an account first is B2B selling on credit terms. Even then, account setup belongs in a separate onboarding step, not in the checkout.
3. Build the form for a 360px phone
Most checkouts are built and tested on a desktop browser 1440px wide. Open the same page in Chrome on a 360px Android phone and the problems show up:
- fields run off the edge, so the customer types blind
- the keyboard covers the “Pay now” button
- the phone field opens a letter keyboard instead of numbers
- the order button is the same colour as everything around it
- the county list makes the customer scroll through 47 entries to reach Nairobi
Most off-the-shelf themes ship these defaults unless someone builds for phones on purpose. Open your analytics and look at the phone share of checkout visits before you decide this can wait. The fixes are small.
| Problem | Fix |
|---|---|
| Side-by-side fields | One column, with every field stacked |
| Letter keyboard for numbers | inputmode="numeric" on phone, amount and postcode fields |
| Long dropdowns | Default the county to where most orders go, and the currency to KSh |
| Pay button lost on the page | A full-width, high-contrast button fixed to the bottom of the screen |
Then count the taps from “Add to cart” to paid. If it takes more than four, some willing buyers are dropping out on the way.
4. Tell the customer the moment they have paid
The phone shows “Confirmed. KSh 2,500 sent to…” while the website shows the same spinner as before. After 20 seconds the customer refreshes the page. The cart is empty, the order seems gone, and they send you an angry WhatsApp.
Paid orders that look failed are the easiest loss on this list to prevent.
- Hold the customer on a “Confirming your payment” screen with plain status text.
- Have the browser check your order status every couple of seconds.
- Your server marks the order paid through the callback or a status check. At that moment, show the M-PESA receipt number, delivery details and next steps.
- Send an SMS or WhatsApp confirmation within seconds, whatever the browser is doing.
The message is the safety net. If the customer closed the tab in a panic, it proves the order went through. It also gives them a way back to you.
5. Stop selling stock you no longer have
A customer fills a cart on Monday and returns on Wednesday. The item sold out on Tuesday. The cart still shows it, takes the payment, and only then says “out of stock”. Now you owe a refund to a customer who will not shop with you again.
- Reserve stock when it goes into the cart, with a short window of 10 to 30 minutes. Abandoned carts then release it.
- Recheck availability when checkout opens, and offer a similar item before any payment details go in.
- Refuse payment for anything you cannot reserve. Making someone wait 30 seconds longer costs far less than selling one item twice.
This needs real inventory tracking, not a quantity field on the product. Above a modest volume, it decides whether you run a shop or a refund queue.
What the finished checkout looks like
Put the five fixes together and the checkout has these properties:
- three screens at most: cart, delivery and payment, then confirmation
- guest checkout by default, with an account offered after payment
- a one-column form with numeric inputs and a fixed pay button
- STK push with a resend after 30 seconds and a paybill option at all times
- live status while payment confirms, then a clear receipt screen
- an SMS or WhatsApp receipt within 60 seconds of payment
- stock reserved in the cart and rechecked at checkout
- a WhatsApp support number at the foot of every checkout screen
Leave the homepage alone until this is done. The homepage decides whether people click, and the checkout decides whether they pay.
Fix them in this order
If you can fix one thing this quarter, fix payment confirmation. Combine callbacks with status checks and show clear status text in the browser. It rescues orders that were already paid but looked failed.
If you can fix two, add guest checkout and the fixed mobile pay button. Each is usually a few days of work.
Stock reservations come third. They take longer, because they need proper inventory behind the shop.
Before any of it, watch five people check out on their own phones, on mobile data, with real money. Note where each one hesitates. That list is your plan.
Our payments service builds M-PESA, Airtel Money and card checkouts with these patterns from the start. A gateway pay link through Paystack or Pesapal adds M-PESA and card payments to an existing shop. If you need it this week, that is an Express job.
Need it built properly? A free 30-minute call with an engineer, then one fixed price in writing.
Book a free callNeed it built properly? A free 30-minute call with an engineer, then one fixed price in writing.
Book a free call