E-commerce11 min read

Decline Code Taxonomy and Smart Retry Logic for M-Pesa and Card Checkouts in Nairobi

Mohamed Bah·Fondateur, Kolonell
August 30, 2026
Share:
Decline Code Taxonomy and Smart Retry Logic for M-Pesa and Card Checkouts in Nairobi

Decline Code Taxonomy and Smart Retry Logic for M-Pesa and Card Checkouts in Nairobi

E-commerce

The verdict in three sentences

A payment failure is a diagnosis, not a sentence: the code the operator returns tells you exactly what to do. In Nairobi, 38% of M-Pesa STK failures are timeouts (instant retry) and a large share are insufficient funds (retry within 24 h); handling them differently recovers 6 to 12% of lost revenue. Blindly retrying an insufficient-funds decline wastes fees and annoys the customer.

The decline code taxonomy

Each code calls for a distinct action and delay. Confusing a timeout with insufficient funds means either missing a recoverable sale or burning budget on useless retries.

Decline code (Nairobi)Share of failuresActionDelay
STK timeout38%Instant retry0-30 s
Insufficient funds30%Nudge + retry24 h
Wrong PIN22%Re-enter60 s
Daily limit6%Other providerImmediate
Account suspended4%Contact support--

In Douala the MTN breakdown is comparable: 41% timeouts (retry now), 33% insufficient funds (retry in 24 h), the rest wrong PINs and limits.

Dunning timing by SMS and email

Retry is not just a technical re-trigger: a message at the right moment is the difference between a returning customer and an abandoned cart.

SequenceTimingChannelMessageRecovery rate
Reminder 1+2 hSMS"Your payment didn't go through, try again"25%
Reminder 2+24 hSMS + email"Top up and confirm in 1 tap"40%
Reminder 3+72 hWhatsAppDirect payment link55%
Close+5 dEmail-5% offer to finish62%

Need a professional website?

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

Mini case study

Samuel runs a meal-delivery platform in Nairobi, 1,200 payments/month of which 10% fail (120 failures) at an average basket of 8,500 FCFA (about 5 EUR), i.e. 1,020,000 FCFA at stake. With no retry strategy he recovers 15% (153,000 FCFA). With code-segmented retries (instant timeouts, insufficient funds in 24 h, WhatsApp dunning), he reaches 55% recovery: 561,000 FCFA, i.e. 408,000 FCFA/month of saved revenue.

FAQ

Why not retry every failure immediately? Because an insufficient-funds decline retried within the minute almost always fails and costs fees. Retrying it within 24 h, after a top-up, lifts its recovery from under 10% to 25-30%.

How many retries before giving up? Three to four, over five days maximum. Beyond that, marginal recovery falls below 3% and the annoyance risk rises. End with a soft incentive rather than yet another SMS.

Is WhatsApp really more effective? Yes: across West and East African markets, a payment link sent by WhatsApp shows an open rate above 80% and converts better than email, which is often ignored.

Can all this logic be automated? Entirely: you map each decline code to a rule (action + delay + channel) and a retry engine runs the sequence. That is what turns 15% recovery into 55%.

Let's talk about your project. We build a retry engine segmented by decline code, with automated SMS and WhatsApp dunning. WhatsApp +221 77 596 93 33.

Tags:#codes echec#relance#smart retry#Douala#Nairobi#M-Pesa#dunning#recuperation revenu
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.