The verdict in three sentences
Integrating online payment (card and mobile) in Morocco costs between 15,000 and 35,000 MAD for the card gateway, plus about 8,000 MAD for mobile money and wallet. Reconciliation and webhooks add 6,000 MAD, for an overall timeline of 3 to 5 weeks. The real recurring cost is the 1.5 to 3% commission per transaction: over time it weighs far more than the integration itself.
The integration cost in MAD
An online payment project is not just pasting a button: you must integrate the gateway, handle 3DS security, process confirmation webhooks and reconcile payments with your orders. Here is the 2026 breakdown in dirhams.
| Item | 2026 range (MAD) | Timeline |
|---|---|---|
| Card gateway integration (CMI) | 15,000 - 35,000 | 2-3 weeks |
| Mobile money and wallet | 8,000 | 1-2 weeks |
| Reconciliation and webhooks | 6,000 | 1 week |
| 3DS security and failure handling | included | - |
| Testing and acceptance | 3,000 - 5,000 | 1 week |
| Total | 29,000 - 54,000 | 3-5 weeks |
The webhooks item is critical: it reliably confirms a payment succeeded, even if the customer closes their browser. Without a robust webhook, you risk orders that are paid but not recorded.
CMI or aggregators: commissions and trade-offs
In Morocco, two main routes exist: go directly through the CMI (interbank payment center) or through a payment aggregator that eases integration. The choice depends on your volume and your need for speed.
| Criterion | CMI (direct) | Aggregator |
|---|---|---|
| Setup fees | Higher | Lower |
| Commission per transaction | 1.5 - 2.5% | 2 - 3% |
| Account opening time | Longer | Fast |
| Integration complexity | More technical | Simplified (API/SDK) |
| Payment methods | Bank card | Card + mobile + wallet |
| Ideal for | High volume, thin margins | Fast launch, multi-method |
Simple rule: for high volume and thin margins, direct CMI optimizes commissions. To start fast with several payment methods, an aggregator reduces time and technical complexity, at a slightly higher commission.
Mini case study
Karim runs an equipment sales SME in Casablanca doing about 300 transactions per month at a 1,200 MAD average basket, meaning 360,000 MAD monthly volume. He invests 38,000 MAD in integrating a card gateway, mobile money and webhooks. On commissions, moving from a 2.8% aggregator to CMI at 1.8% saves 1% on 360,000 MAD, meaning 3,600 MAD per month, about 43,200 MAD per year. The commission gap alone repays the integration in under a year, not counting the revenue gained from online payment.
Need a professional website?
Kolonell builds websites that attract clients, optimized for the Sénégalese market. Free quote in 2 minutes.
FAQ
Why are webhooks so important?
Because a webhook confirms server-side that a payment succeeded, even if the customer loses connection or closes their browser right after. Without a reliable webhook, an order can be paid but never recorded, creating disputes and losses.
What is 3DS security and is it mandatory?
3D Secure authenticates the cardholder via a code or bank validation. It strongly reduces fraud and chargebacks; it is now a required standard for online card payments in Morocco.
CMI or aggregator for a small SME?
For a fast launch with card, mobile money and wallet, an aggregator is simpler and quicker to open. Once your volume rises and commission weighs, direct CMI becomes more profitable despite a more technical setup.
How do we handle failed payments?
We set up automatic retries, clear error messages and recovery logic. A high failure rate often comes from poorly integrated 3DS or unhandled timeouts; it is an item to get right from the design stage.
How much do commissions cost over time?
Between 1.5 and 3% per transaction, they quickly exceed the integration cost if your volume is high. On 360,000 MAD monthly, a 1% difference is 43,200 MAD per year: optimizing commission is often more profitable than reducing integration cost.
Let's scope your project. Tell us your monthly volume, average basket and desired payment methods (card, mobile money, wallet): we settle CMI versus aggregator and price the integration. Detailed quote within 48 h. 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.

