Payments 7 min read

How to Accept M-Pesa Payments on Shopify in Kenya

Step-by-step guide to accepting M-Pesa payments on your Shopify store in Kenya — STK push checkout, setup options, fees, and best practices for higher conversions.

If your Shopify store targets Kenyan customers and you do not accept M-Pesa, you are losing the majority of your sales. Over 80% of Kenyan online shoppers prefer to pay with M-Pesa, and many will abandon a checkout that only offers cards.

This guide explains how M-Pesa works inside Shopify, the setup options available, and how to make checkout as smooth as possible so you capture every sale.

Why M-Pesa is essential in Kenya

M-Pesa is the default way Kenyans move money. Most shoppers do not own or trust credit cards online, but everyone has an M-Pesa line. Offering it removes the single biggest source of friction at checkout.

Stores that add M-Pesa typically see a meaningful jump in completed orders because buyers can pay in seconds from their phone without entering card details.

How M-Pesa STK push checkout works

The smoothest experience is the STK push (also called Lipa na M-Pesa Online). At checkout the customer enters their phone number, a payment prompt pops up on their phone, they enter their M-Pesa PIN, and the order is confirmed automatically.

Behind the scenes this uses Safaricom's Daraja API. You do not need to build it yourself — Ubossify's checkout integration handles the STK push for Shopify stores out of the box.

Your setup options

There are three common ways to accept M-Pesa on Shopify in Kenya:

  • Ubossify integration — STK push built for Kenyan dropshipping stores, the fastest path to live
  • A third-party M-Pesa payment app from the Shopify App Store
  • A custom Daraja API integration (developer required, most work)

What you need before you start

To go live with M-Pesa you will need a Safaricom till or paybill, your business details, and a connected Shopify store. For Lipa na M-Pesa you register through Safaricom and obtain API credentials, or let Ubossify handle the connection for you.

  • An active Safaricom M-Pesa Till or Paybill number
  • Business registration details (recommended once you scale)
  • A live Shopify store connected to Ubossify

Best practices for higher conversions

Once M-Pesa is live, small details make a big difference to how many customers complete payment.

  • Show the M-Pesa logo on product pages and at checkout to build trust
  • Keep the phone-number field obvious and validated
  • Send an instant order confirmation by SMS or WhatsApp — it cuts disputes
  • Test the full flow on a real phone before launching ads

Start your dropshipping business in Kenya

Source from 100+ verified Kenyan suppliers, push products to Shopify in one click, and get paid via M-Pesa. Free to start.

Start Free Today

Frequently Asked Questions

Does Shopify support M-Pesa natively?+
Shopify does not include M-Pesa as a built-in gateway. You add it through an integration like Ubossify, a third-party Shopify app, or a custom Daraja API setup. Ubossify's STK-push integration is the quickest way for Kenyan stores to go live.
What are the fees for M-Pesa on Shopify?+
Costs depend on your Safaricom till/paybill tariff and any integration provider fees. Safaricom charges transaction-based rates for Lipa na M-Pesa. Always confirm current Safaricom rates, as they change over time.
Can customers still pay by card?+
Yes. Most Kenyan stores offer M-Pesa as the primary method and keep Visa/Mastercard as a secondary option for customers who prefer cards, maximising the number of buyers you can serve.

Related Articles