The verdict in three sentences
A payment flow launched without serious QA loses 5 to 12 % of orders in the first week — the most expensive kind of bug. Every operator offers a sandbox environment (test keys, dummy numbers, trigger amounts) to replay each scenario with no real money movement. Six scenarios are mandatory: success, USSD timeout, cancellation, insufficient funds, double-click and replayed webhook.
Available sandbox environments
Each solution provides a test mode isolated from production.
| Solution | Test environment | Prod switch |
|---|---|---|
| Paystack | Dedicated test keys | Swap the API key |
| Flutterwave | Test mode + test cards | Live toggle |
| Wave | Merchant staging | Prod URL + key |
| Second wallet | Simulated USSD sandbox | Prod contract |
| MTN MoMo | Sandbox API keys | Prod subscription |
Golden rule: never a production key in a development environment, and a distinct key set per environment (dev, staging, prod).
The six mandatory scenarios
A flow is only validated if all six pass, with the order in the expected state.
| Scenario | Trigger | Expected state |
|---|---|---|
| Successful payment | OK test number | Order paid |
| USSD timeout | Wait 30-60 s | Order pending then failed |
| Customer cancellation | Decline at prompt | Order cancelled |
| Insufficient funds | "no funds" test number | Order failed, clear message |
| Double-click | 2 fast submissions | Single debit (idempotency) |
| Replayed webhook | Manual webhook resend | No double-credit |
Double-click and replayed webhook are the most often forgotten — and the costliest, since they create double debits on real customers.
Mini case study
Ngozi, a project manager for an e-commerce site, hesitates to invest 2 days of QA (≈ 120,000 FCFA of developer time) before launch. Her shop targets 200 orders/day at an average basket of 18,000 FCFA, i.e. 3,600,000 FCFA/day. An undetected bug hitting 8 % of orders in the first week would cost 8 % × 3,600,000 × 7 = ~2,016,000 FCFA in lost sales. The 120,000 FCFA of QA thus protects revenue 17 times larger. The math isn't up for debate.
Need a professional website?
Kolonell builds websites that attract clients, optimized for the Sénégalese market. Free quote in 2 minutes.
FAQ
How much does a production payment bug cost?
Between 5 and 12 % of orders lost in the first week, plus support tickets and lost trust. At 200 orders/day at 18,000 FCFA, that can exceed 2,000,000 FCFA in a week.
Can I test without real money movement?
Yes, that's the whole point of the sandbox: test keys, dummy numbers and trigger amounts simulate success, failure and timeout with no real debit.
Which scenario is most often forgotten?
The double-click and the replayed webhook. Yet these create double debits on real customers and generate the most disputes.
How do I simulate a USSD timeout?
Sandboxes offer "timeout" numbers or amounts that keep the session open 30 to 60 seconds before failing, exactly like a customer who never enters their code.
How long should full QA take?
Budget 1 to 2 days to replay all six scenarios on each operator. That's negligible against the millions of FCFA of sales protected.
Let's talk about your project. We'll build your sandbox QA plan and validate all six scenarios before your go-live. WhatsApp +221 77 596 93 33.
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.

