E-commerce11 min read

Integrating the M-Pesa Daraja API into a Nairobi Checkout in 2026

Mohamed Bah·Fondateur, Kolonell
August 22, 2026
Share:
Integrating the M-Pesa Daraja API into a Nairobi Checkout in 2026

Integrating the M-Pesa Daraja API into a Nairobi Checkout in 2026

E-commerce

The verdict in three sentences

In Nairobi, the Daraja / M-Pesa API costs 0.5 to 1.5% per transaction, but the truly expensive line is the engineering days to embed a reliable STK Push checkout. A hosted redirect puts you live in 2 days; an embedded STK/API delivers a better experience at the price of 5 to 10 days of development. The choice depends on your tolerance for the abandonment rate, which climbs to 12-18% when the flow is poorly designed (worse on USSD than on STK Push).

Fees, timeouts and abandonment in 2026

Mobile money has its own constraint: the customer must confirm on their phone within a short window. 2026 order of magnitude.

ParameterDaraja / M-Pesa KenyaOrange Money Mali
Transaction fee0.5 to 1.5%1 to 2%
Validation timeoutcallback < 10 s (STK)60 to 120 s (USSD)
Automatic retryper implementation2x
Test sandboxfree (Daraja)per access
Go-live (dev)5 to 10 days5 to 10 days
Equivalent dev cost350,000 to 800,000 FCFA350,000 to 800,000 FCFA
Abandonment ratelower via STK Push12 to 18% (USSD)

M-Pesa's STK Push is smoother: a push notification replaces USSD entry, mechanically reducing abandonment. A USSD flow, by contrast, depends on network quality and customer patience within a 60 to 120 second window.

Hosted redirect or embedded API

Here is the structuring decision: keep the customer on your site (embedded API) or send them to a provider-hosted page (redirect).

CriterionHosted redirectEmbedded API
Time to live1 to 2 days5 to 10 days
Dev cost80,000 to 200,000 FCFA350,000 to 800,000 FCFA
Customer experienceleaves the sitestays on the site
Design controllimitedtotal
Reconciliationsimplifiedbuild it
Abandonmenthigherlower if done well

At low volume, the hosted redirect is the pragmatic choice: fast, cheap, no technical debt. The embedded API pays off when every conversion point matters — beyond a few million FCFA in monthly sales.

Mini case study

Wanjiru, who runs a ready-to-wear store in Nairobi, collects the equivalent of 1,200,000 FCFA/month with a 15,000 FCFA average basket. Her abandonment rate is 16%. By moving from a redirect to a better-guided embedded STK Push, she targets 10% abandonment — 6 points recovered, roughly 72,000 FCFA in saved sales per month. The 500,000 FCFA build pays back in 7 months. Verdict: at that basket, the embedded API is worth it.

Need a professional website?

Kolonell builds websites that attract clients, optimized for the Sénégalese market. Free quote in 2 minutes.

FAQ

Why is the abandonment rate so high?

Because the customer must confirm on their phone within a 60 to 120 second window, often on an unstable network. A poorly explained flow can push abandonment to 12-18%.

Is Daraja's STK Push really better?

Yes, on experience: a push notification replaces manual USSD code entry, cutting abandonment, and the callback arrives in under 10 seconds.

How long to integrate M-Pesa in Kenya?

Expect 5 to 10 days of development for an embedded API, versus 1 to 2 days for a hosted redirect. Cost follows: 350,000 to 800,000 FCFA versus 80,000 to 200,000 FCFA equiv.

Do I need to handle retries?

Yes. Always back the callback with a status check so you never confirm an order on a simple timeout.

Can I test before going live?

Daraja offers a very convenient free sandbox. Use it to validate the full STK Push flow before touching production.

Let's talk about your project. We price your M-Pesa checkout — redirect or embedded API — based on your average basket. WhatsApp +221 77 596 93 33.

Tags:#Orange Money#M-Pesa#Daraja API#checkout#Bamako#Nairobi#STK Push#integration
Share:

Mohamed Bah

Fondateur, Kolonell

Passionate about digital and entrepreneurship in Africa, Mohamed has been helping Sénégalese businesses with their digital transformation since 2020. Founder of Kolonell, he believes every SME deserves a professional and accessible online présence.