Skip to content
Most Complete Technical Guide in Morocco

Payment Platform Development in Morocco

Fintech solutions: gateway, wallet, mobile payment, aggregation

🎓 Complete Technical Guide

CMI Payment Gateway Integration in Morocco

Step-by-step guide with ready-to-use code for JavaScript, PHP, Python and Java. Integrate CMI card payment (Attijariwafa Bank) in less than 30 minutes.

⚡ Quick installation✅ Production tested🔒 3D Secure 2📦 Open-source code

💡 Why use this guide?

🚀

Time saving

Save 2-3 days of development with ready-to-use and tested code.

🎯

Best practices

Based on 15 years of fintech experience and 30+ banking clients in Morocco.

🔐

Guaranteed security

SHA512 hash, 3D Secure 2, PCI-DSS compliance, OWASP protection.

Comment s'inscrire au CMI Payment Gateway Maroc ?

Pour accepter les paiements par carte bancaire au Maroc via CMI (Centre Monétique Interbancaire), vous devez obtenir un compte marchand e-commerce auprès d'Attijariwafa Bank. CMI est la passerelle de paiement officielle qui gère toutes les transactions par carte bancaire au Maroc avec le protocole 3D Secure obligatoire pour la sécurité des paiements en ligne.

💡 Bon à savoir : CMI est l'unique opérateur de paiement par carte au Maroc. Toutes les banques marocaines (Attijariwafa Bank, BMCE, Banque Populaire, CIH, BMCI, Crédit du Maroc...) utilisent CMI pour sécuriser les transactions e-commerce avec la technologie 3D Secure.

1

Ouvrir un compte professionnel

Ouvrez un compte bancaire professionnel chez Attijariwafa Bank si vous n'en avez pas déjà un.

2

Contacter le service e-commerce CMI

Visitez attijaripayment.com ou contactez directement votre conseiller Attijariwafa Bank pour demander l'activation d'un compte marchand CMI.

📞 Contact : Service e-commerce Attijariwafa Bank

Précisez que vous souhaitez accepter les paiements en ligne par carte bancaire (Visa, Mastercard, Maestro) avec authentification 3D Secure pour votre site e-commerce.

3

Documents requis

  • ✅ Registre de Commerce (RC)
  • ✅ Identifiant Fiscal (IF)
  • ✅ Identifiant Commun de l'Entreprise (ICE)
  • ✅ RIB du compte professionnel
  • ✅ Exemplaire de votre site web (captures d'écran)
  • ✅ Description de votre activité
4

Délai et réception des identifiants

Comptez 2 à 4 semaines pour l'activation de votre compte.

Vous recevrez par email sécurisé :

  • 🔑 Client ID (ex: XXXXXXXXX)
  • 🔐 Store Key (clé secrète pour le hash)
  • 🌐 Accès au CMI Merchant Center (suivi transactions)

💡 Conseil VOID : En parallèle de votre inscription CMI, vous pouvez commencer le développement en utilisant les identifiants de test fournis dans l'onglet "Tests" de ce guide.

Cela vous permettra de préparer l'intégration technique pendant que votre dossier est en cours de validation chez Attijariwafa Bank.

Questions fréquentes sur l'inscription CMI

Combien coûte un compte marchand CMI ?

L'ouverture du compte marchand est généralement gratuite. Les frais portent sur les transactions (commission par paiement, négociable selon votre volume : entre 1,5% et 2,5% + frais fixe).

Peut-on avoir CMI avec n'importe quelle banque ?

Oui, toutes les banques marocaines proposent CMI. Cependant, Attijariwafa Bank est la référence pour l'e-commerce au Maroc avec le meilleur support technique et les délais les plus courts.

Faut-il un site en ligne pour s'inscrire ?

Oui, vous devez présenter une maquette ou un site déjà en ligne. La banque vérifie la conformité du site (mentions légales, CGV, politique de remboursement, HTTPS obligatoire).

Need help integrating CMI?

VOID has supported 30+ banking clients in Morocco for 15 years. We can help you.

Contact our experts →

Proven production implementation

This guide is based on our real experience with major banking clients

30+
Banking clients
15
Years of experience
100%
Tested code
24/7
Support available

Payment Platform Development in Morocco

Fintech solutions: gateway, wallet, mobile payment, aggregation

VOID develops BAM and PCI-DSS compliant payment platforms: payment gateway, digital wallet, mobile payment (USSD/QR), tokenization, and multi-acquirer aggregation.

10+
Fintech Projects
100k+
Transactions/Day
99.99%
Availability
<500ms
Payment Latency

Why choose us?

Payment Gateway

Multi-acquirer payment gateway. CMI, Maroc Telecommerce, PayZone. 3D Secure 2, anti-fraud.

Digital Wallet

Electronic wallet. Top-up, P2P, merchant payment, QR code, NFC. BAM compliance.

Mobile Payment

USSD (*890#), QR code, NFC, SMS payment. Orange Money, Cash Plus, Wafacash.

Tokenization & Security

Bank card tokenization, PCI-DSS, ML anti-fraud, 3D Secure 2, biometrics.

Frequently Asked Questions

Obtain BAM approval (payment institution or money transfer company), develop PCI-DSS Level 1 compliant platform, integrate acquirers (CMI, banks), implement KYC/AML, deploy high-availability infrastructure (AWS/Azure), annual security audit.

Microservices architecture: API Gateway (Kong/Apigee), transaction service (Node.js/Go), tokenization vault (HSM), anti-fraud (ML), webhooks, retry queue (Redis), transactions database (PostgreSQL), logs (ELK), monitoring (Grafana), real-time backup. Hosting dual DC Morocco + Cloud.

PCI-DSS Level 1 (annual audit), card tokenization (no PAN storage), 3D Secure 2 (SCA), TLS 1.3 encryption, HSM for keys, ML anti-fraud (95% acceptance rate), real-time fraud monitoring, 2FA, biometrics, IP whitelisting, rate limiting.

Acquirers: CMI, Moroccan banks (BMCE, BMCI, Attijariwafa bank, CIH). Wallet: Orange Money, Cash Plus, Wafacash. International: Stripe, PayPal (if authorized by BAM). KYC/AML: DGSN API, trade registry, credit scoring.

Development includes several phases: MVP wallet (functional prototype), then complete payment gateway with all features. Required infrastructure: secure hosting, PCI-DSS certification, regular audits. Bank Al-Maghrib compliance: legal file, audits, processes. Overall timeline: 6-12 months depending on scope.

To integrate CMI (Centre Monétique Interbancaire) in Morocco: 1) Open a merchant account with Attijariwafa Bank (2-4 weeks), 2) Receive Client ID and Store Key, 3) Develop payment initialization with SHA512 hash, 4) Create server-to-server HTTPS callback, 5) Test in sandbox, 6) Go to production. VOID offers a complete guide with ready-to-use JavaScript, PHP, Python, Java code on this page.

Expected costs: CMI merchant account (free), integration development (5-15 developer days depending on complexity), CMI transaction fees per payment (negotiable with AWB, generally 1.5-2.5% + fixed fee). VOID can integrate CMI on your site: quote on request. Typical budget: 30K-80K MAD for complete integration including tests, security, monitoring.

CMI: Moroccan bank cards only, mandatory 3D Secure, merchant account required (2-4 weeks delay), negotiable fees, local AWB support, CNDP compliance. Stripe: international cards, quick onboarding, fixed fees 2.9% + $0.30, no merchant account, modern API. Recommendation: CMI for B2C Morocco (mandatory for local cards), Stripe as complement for international if authorized.

SHA512 hash secures exchanges with CMI by guaranteeing data integrity and mutual authentication. Calculation: all parameters sorted alphabetically + Store Key, hashed in SHA512 then base64 encoded. If the hash does not match on CMI side or in callback, transaction is refused (protection against forgery). Critical: never expose Store Key on client side, only on server side.

Ready to turn your project into a digital success?

Contact us for a free consultation and a personalized quote.