CMI is the primary card payment gateway available for Moroccan e-commerce merchants. Yet many Shopify stores in Morocco run without it, not because owners don't want to integrate it, but because they don't know where to start. This guide gives you the steps in order, the real prerequisites, and the mistakes to avoid.
Why CMI is essential for Shopify in Morocco
The Centre Monetique Interbancaire is the official card payment processing network in Morocco, grouping the major banks: Attijariwafa Bank, BMCE Bank of Africa, CIH Bank, Banque Populaire, and others. When a Moroccan customer pays by card on your Shopify store, the transaction goes through CMI regardless of what solution you use on the front end.
Integrating it directly gives you MAD transfers to your Moroccan bank account, full regulatory compliance, and increased trust from customers who recognize the CMI logo at checkout.
Prerequisites before you start
Legal business status. CMI requires a SARL or auto-entrepreneur status registered in the trade register. An informal activity is not accepted.
Professional bank account. Your personal account will not be accepted. You need a professional current account at a CMI-affiliated bank.
Recent trade register. The document must be less than 3 months old in some cases. Check the date before submitting.
A live website. The bank and CMI will evaluate your store. It must be online with product pages, legal notices, and a visible refund policy.
Common mistakes that block integration
Submitting without a live site. The bank checks that your site URL is active. If your store is password-protected, wait.
Using a personal bank account. The account must be professional, in your company's name.
Not checking fees before signing. Fees range from 1.5% to 2.8% per transaction depending on your bank and volume. Negotiate before signing.
Expecting CMI to handle the technical side. CMI provides API documentation and credentials. The Shopify integration is your responsibility.
The steps in order
Step 1. Prepare your complete application: trade register, company statutes, national ID copy, recent bank statement, website URL.
Step 2. Contact your bank's business services or electronic payments department. Ask to activate online payment via CMI for your Shopify store.
Step 3. Sign the payment agreement. The bank submits your application to CMI. An agreement is prepared with your fee conditions and transaction limits. Read it carefully before signing.
Step 4. Receive your CMI credentials. After signing, CMI sends sandbox credentials for testing, then production credentials. Never share these publicly.
Step 5. Technical integration on Shopify. There is no native CMI connector in the Shopify App Store for Moroccan merchants. Use a compatible third-party app or have a custom integration developed via the Shopify Payments API and CMI webhooks.
Step 6. Test everything in sandbox: successful payment, declined payment, refund, cart abandonment. Only go live when all scenarios pass.
Step 7. Activate production and monitor your first transactions, transfer timelines, and any errors. CMI transfers funds within 2 to 5 business days.
The realistic timeline
From first bank visit to production: 4 to 8 weeks. This is the norm, not the exception. Plan accordingly and don't build your launch date around CMI until you have credentials in hand.
Need help with the technical integration or preparing your application? Glorythm supports Moroccan brands at every step. Contact us at glorythm.com
