>
Lirick Digital Hub logoLirick Digital Hub

How to Accept M-Pesa Payments on Your Website in Kenya

By Lirick Digital Hub · Published 22 October 2026 · Last reviewed 22 October 2026

To accept M-Pesa on a website in Kenya you need a Paybill or Till number, a secure website with a backend or plugin, and either Safaricom’s Daraja API or a payment provider that connects to M-Pesa. The simplest options are showing your Paybill or Till for manual confirmation, using a payment plugin or using a provider such as IntaSend, Pesapal or DPO.

Business owner checking his phone at a laptop

Four ways to accept M-Pesa

  • Show your Paybill or Till number and confirm payments by hand. Cheapest, but slow and error-prone.
  • A plugin for your store, for example on WordPress with WooCommerce, which prompts the customer on their phone.
  • A payment provider such as IntaSend, Pesapal or DPO, which offers M-Pesa and cards together.
  • A custom integration with the Daraja API, built by a developer for your site or app.

What you need

  • A registered business with a Paybill or Till number
  • A secure (HTTPS) website
  • A backend or plugin, because plain HTML pages cannot safely call the payment API
  • An account with Safaricom Daraja or a payment provider
  • A way to update the order when payment succeeds

Step by step

  1. Choose your option based on volume and budget.
  2. Apply for your Paybill or Till if you do not have one.
  3. Set up your provider or Daraja account and test it in the sandbox.
  4. Build or install the checkout and the payment confirmation.
  5. Test small real payments, including failed ones.
  6. Go live, and check the first orders carefully.

Costs and fees

Costs differ: some providers charge a percentage per transaction, plugins may have a licence fee, and developers charge for custom work. Ask for all fees in writing, including what happens when a payment fails or is reversed.

Common mistakes

  • No test of failed payments
  • No confirmation message to the customer
  • Orders not updating after payment
  • Skipping the refund process
  • Collecting card or phone details you do not need

How we can help

Our online store package includes M-Pesa and card payment setup. See website design in Nairobi and our website cost guide.

Quick checklist

  • Paybill or Till ready
  • Secure website
  • Option chosen and fees confirmed
  • Sandbox test done
  • Failed payments tested
  • Customer confirmation message set

FAQs

How can I accept M-Pesa on my website?

Use a payment plugin, a payment provider or a Daraja API integration, all of which need a Paybill or Till number and a secure website.

Do I need a developer to accept M-Pesa?

Not always. A plugin or provider can be set up without custom code, but a developer helps if you have special needs.

Can I accept M-Pesa and cards together?

Yes, many payment providers offer both on one checkout.

How much does M-Pesa integration cost?

It depends on the method. Our online store package starts from KES 90,000 and includes M-Pesa and card payment setup.

Want an online store that takes M-Pesa? Tell us your products.

Request a store quote Get a free audit

Keep reading

WhatsApp us