← Back to Blog ✻ e-commerce

M-Pesa & Online Payments: Setting Up E-commerce in Kenya

Nordlyte Web Studio · E-commerce Guide · 7 min read

getting paid online, the Kenyan way

For most Kenyan shoppers, M-Pesa isn't a payment "option" — it's the default. If you're launching an online store, getting M-Pesa (and a card backup) working smoothly on your site isn't optional either. Here's what actually goes into setting up payments for a Kenyan e-commerce site.

Why M-Pesa has to come first

Kenya has one of the highest mobile money adoption rates in the world, and most everyday shoppers trust M-Pesa far more than entering card details on an unfamiliar website. A store that only accepts card payments will quietly lose a large share of potential customers before checkout even starts.

Your main options for accepting M-Pesa online

1. M-Pesa Paybill / Till Number (manual)

The simplest setup: display your Paybill or Till number and ask customers to pay manually, then confirm the order once payment is received. It costs nothing to set up but requires manual checking and doesn't scale well past a handful of daily orders.

2. Safaricom Daraja API (automated)

This connects your website directly to M-Pesa so payments are confirmed automatically and orders update in real time — the standard approach for a serious online store. It requires developer integration but removes manual checking entirely.

3. Third-party payment gateways

Providers like Pesapal, Flutterwave, and IntaSend bundle M-Pesa, card, and sometimes bank transfer into a single checkout integration, which is often faster to launch than building a direct Daraja integration from scratch.

MethodSetup effortBest for
Manual Paybill/TillLowLow order volume, just starting out
Daraja API (direct)HighEstablished stores with dedicated dev support
Payment gateway (Pesapal, Flutterwave, IntaSend)MediumMost small-to-medium e-commerce sites

Should you also accept card payments?

Yes, where possible. While M-Pesa covers the majority of local shoppers, accepting Visa/Mastercard opens your store to diaspora customers and shoppers who simply prefer cards — most gateways above support both in a single integration, so it's rarely extra effort once M-Pesa is set up.

💡 tip: always show the total price clearly before checkout — unexpected fees at the last step is one of the biggest causes of abandoned carts

What this means for your website build

Payment integration is one of the main reasons a full e-commerce build costs more than a standard business website — it involves backend logic, security considerations, and testing that a simple informational site doesn't need. When budgeting for a store, ask your developer specifically which payment method they'll integrate and whether it's automated or manual.

Questions to ask before you start

Planning an online store?

We build e-commerce sites with M-Pesa and card payments built in from the start.

💬 Get a Free Quote on WhatsApp
← Back to all articles