mpesa website integration kenya

M-Pesa Website Integration Kenya: How to Accept M-Pesa Payments on Your Site

If you sell online in Kenya, customers will expect to pay with M-Pesa. This guide explains the three main ways to add M-Pesa to your website, what each costs and needs, how long it takes, and which one suits your business.

Why M-Pesa Integration Is Non-Negotiable for Kenyan E-commerce

The Communications Authority of Kenya’s customer satisfaction survey for July 2024 to June 2025 found that 65.7% of online shoppers paid with mobile money at checkout, and only 13% used cash on delivery. A checkout without M-Pesa leaves out most of those shoppers. Card use in Kenya is lower than mobile money, so for most customers M-Pesa is the default way to pay.

65.7%

of online shoppers pay with mobile money

44.8%

of online orders placed through mobile apps

20.2%

of online orders placed through WhatsApp

13%

still use cash on delivery

Communications Authority of Kenya customer satisfaction survey, July 2024 to June 2025, as reported by ITWeb Africa and others.

The same survey shows many customers order through apps and WhatsApp, not only through websites. So the best setup lets you collect M-Pesa in more than one place: on your site and in a chat.

Your Options for M-Pesa Website Integration

Option 1: Daraja API (Safaricom’s Direct API)

Daraja is Safaricom’s developer portal. It gives you direct access to M-Pesa services such as STK Push (the prompt that appears on the customer’s phone), C2B (customer to business) and B2C. It is the most flexible integration, but it needs a developer and a business registered with Safaricom.

Best for: custom websites and apps that need full control over payment flows.

Requirements: a registered business, an approved Safaricom M-Pesa API access application, and developer resources.

Cost: API access itself is free. The cost is developer time, which varies with how complex your payment flow is.

Option 2: Payment Gateways (Easiest Route)

Payment gateways handle the Safaricom API complexity for you and give you ready-made plugins or APIs that connect to your website. Common options in Kenya:

Pesapal

M-Pesa and cards in one agreement. Has a WooCommerce plugin and is popular for e-commerce.

iPay Africa

M-Pesa, Airtel Money and card payments. WooCommerce and custom integration available.

Kopo Kopo (K2 Connect)

Built around M-Pesa, including STK Push. A good fit if you do not need cards.

Flutterwave

Pan-African gateway supporting M-Pesa, cards and many currencies.

DPO Pay

Enterprise-focused, popular in travel and hospitality. Handles cards and M-Pesa.

Best for: WooCommerce sites, e-commerce, or any site that needs quick integration without custom development.

Cost: transaction fees are typically about 2% to 3.5% per payment, and some providers add monthly fees. Rates change, so check each provider’s current terms.

Option 3: M-Pesa Till or Paybill (Simplest)

For service businesses, consultants and agencies that do not run a full online shop, a Buy Goods Till or Paybill number with a manual confirmation process is often enough. Customers pay to your number and you confirm the payment.

Best for: service businesses, agencies, schools and anyone with lower transaction volumes.

Cost: customers pay nothing extra on Buy Goods, but you pay a merchant fee of about 0.55% per payment, capped at KES 200, and Safaricom has made collections up to KES 500 free since 7 August 2026. Paybill charges are agreed with Safaricom, so ask them. Safaricom sets the registration requirements and any fees, so check its current terms.

Confirm payments safely: check the confirmation message from Safaricom or your M-Pesa statement, not a screenshot a customer sends. Screenshots are easy to fake.

M-Pesa Integration for WordPress / WooCommerce

If your website runs on WordPress with WooCommerce, the fastest route is usually a payment gateway plugin. Pesapal and iPay Africa both have WooCommerce plugins that can often be configured in under an hour once your gateway account is active. This is the route we recommend for most Kenyan e-commerce sites, because a single integration handles M-Pesa, Airtel Money and cards.

What You Need Before Integrating M-Pesa

☐ A registered business (sole proprietorship, company or NGO)

☐ A KRA PIN

☐ A Safaricom M-Pesa registered business line

☐ A payment gateway account, if you are using a gateway

☐ An SSL certificate on your website, which payment integrations require

How Long Does M-Pesa Integration Take?

These timings are typical and depend on how complete your documents are and how complex your site is.

1 to 3 days

A payment gateway plugin on WooCommerce, once the gateway account is approved.

1 to 3 weeks

A custom Daraja API integration, depending on complexity.

3 to 7 business days

Typical wait for Safaricom approval after you apply.

M-PESA INTEGRATION

Does Metridata Handle M-Pesa Integration?

Yes. We integrate M-Pesa into WordPress sites, custom websites and landing pages. We handle the payment gateway setup, WooCommerce configuration, testing and go-live. M-Pesa integration is included in our e-commerce website package and is available as a standalone service for existing sites.

Sources: Communications Authority of Kenya customer satisfaction survey (July 2024 to June 2025); Safaricom merchant tariff notice (August 2026). Fees and requirements change, so confirm current terms with Safaricom and each provider.

Leave a Reply

Your email address will not be published. Required fields are marked *

Other Latest Posts