← Back to Blog ✻ e-commerce

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

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

getting paid online, the Kenyan way

For most Kenyan shoppers, M-Pesa isn't a payment "option" — it's the default. That's true whether you're a Kenyan business building your first online store, or an international business — anywhere in the world — building a store that needs to reach customers in Kenya. Either way, getting M-Pesa (and a card backup) working smoothly on your site isn't optional. Here's what actually goes into setting up payments for a store that serves Kenya, no matter where the business itself is based.

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

💬 Short on time? We can just tell you what you need.

Chat with us →

Other online payment options beyond M-Pesa

M-Pesa comes first for a reason, but "online payments" in Kenya isn't M-Pesa alone — a well-set-up store usually supports a few methods side by side:

Yes, where possible, accepting card payments alongside M-Pesa is worth it. While M-Pesa covers the majority of local shoppers, cards and international gateways expand your reach without meaningfully complicating checkout for the customers who already prefer M-Pesa.

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

If checkout friction is already costing you sales, that's exactly the kind of thing a website audit is built to catch — reviewing your checkout flow alongside speed and structure, not just guessing at what's causing drop-off.

Already have a Shopify or WooCommerce store?

If you're running an existing Shopify or WooCommerce store — whether you're based in Kenya or selling into Kenya from elsewhere — adding M-Pesa doesn't mean rebuilding your store. Both platforms support M-Pesa through third-party apps and plugins that connect to the same payment gateways covered above (Pesapal, Flutterwave, IntaSend all offer Shopify and WooCommerce integrations). WooCommerce specifically runs on WordPress, so if you're still deciding on a platform in the first place, our WordPress vs custom coded website comparison is worth reading first. The setup is generally simpler than a fully custom build, since you're adding a payment method to an existing platform rather than building checkout logic from scratch — though it's still worth having a developer confirm the integration is tested properly before you launch.

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

Frequently asked questions

What's the best payment gateway in Kenya for M-Pesa and cards together?

Pesapal, Flutterwave, and IntaSend all bundle M-Pesa and card payments into a single checkout integration, and are generally faster to launch than building a direct Safaricom Daraja integration from scratch.

Can I add M-Pesa to a Shopify store?

Yes — through third-party apps that connect to the same payment gateways used for custom sites. It's usually simpler than a custom build since you're adding to an existing platform rather than building checkout from scratch.

Is M-Pesa considered an e-wallet?

Functionally, yes — it works as a mobile money e-wallet. Kenyan shoppers and businesses just call it M-Pesa rather than using the broader "e-wallet" term.

What are the main online payment methods in Kenya?

M-Pesa (Paybill, Till, or Daraja API) leads by far, followed by card payments (Visa/Mastercard), with Airtel Money and bank transfer as smaller secondary options.

Planning an online store?

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

✉️ Get a Free Quote
← Back to all articles
Need help with your website?Get a free quote →