Skip to main content
Payment gateway illustration showing e-commerce site connected to banking networks in Morocco
Payments

Payment Gateway in Morocco: Complete Guide 2026

8 min read

What Is a Payment Gateway?

A payment gateway is a technology infrastructure that allows a merchant — online or physical — to accept and process electronic payments from customers. It acts as a secure intermediary between the merchant's e-commerce site (or application), the customer's bank (issuing bank), and the merchant's bank (acquiring bank).

In Morocco, the online payment market is growing rapidly. According to Bank Al-Maghrib, card transactions exceeded 250 million operations in 2025, and Moroccan e-commerce surpassed 15 billion dirhams in revenue. In this context, choosing the right payment gateway has become a strategic decision for any digital business.

Whether you're an e-commerce merchant on Shopify, a developer integrating a payment API, or a fintech building a marketplace, this guide covers everything you need to know about payment gateways in Morocco in 2026.

How Does a Payment Gateway Work?

The online payment process follows several steps, all orchestrated by the gateway:

  1. Initiation — The customer validates their cart and chooses to pay by bank card (or Maroc Pay, wallet, etc.)
  2. Secure collection — The gateway collects payment information via a secure page (SSL/TLS encryption)
  3. 3D Secure authentication — The customer is redirected to their bank to validate the operation (OTP code via SMS)
  4. Authorization — The gateway transmits the request to the interbank network (CMI in Morocco), which queries the issuing bank
  5. Response — The bank authorizes or declines the transaction. The merchant receives real-time confirmation
  6. Settlement — Funds are deposited into the merchant's account after a settlement period (typically D+1 to D+3)

Security Protocols

Every serious payment gateway in Morocco must comply with:

  • PCI-DSS (Payment Card Industry Data Security Standard) — mandatory international standard for card data processing
  • 3D Secure 2.0 — strong authentication protocol required by Bank Al-Maghrib and CMI for all online transactions
  • Tokenization — replacing the card number with a unique token for recurring payments

Morocco's Payment Gateway Market in 2026

The payment gateway landscape in Morocco is structured around several key players:

CMI (Centre Monetique Interbancaire)

CMI is the national interbank operator, owned by Moroccan banks. It manages the interbank network and provides the reference online payment gateway in Morocco. Every Moroccan bank card transaction passes through CMI.

  • Strengths: market standard, accepts all Moroccan and international cards, proven reliability
  • Limitations: more complex technical integration, long onboarding process, basic admin interface

Payzone

Payzone is a multi-channel payment gateway offering solutions for e-commerce, recurring payments, and in-store payments.

  • Strengths: simple interface, multi-channel, recurring payments
  • Limitations: limited to cards, fewer modern APIs

Chari Pay (ChariBaaS)

Chari Pay is ChariBaaS's payment gateway, PCI-DSS certified with 3D Secure, Maroc Pay, and modern REST APIs. It's designed for fintechs and platforms that need fast, flexible integration.

  • Strengths: modern APIs, testing sandbox, complete documentation, responsive technical support, built-in Maroc Pay
  • Ideal for: fintechs, marketplaces, SaaS platforms, mobile applications

AmanPay

AmanPay is an e-commerce gateway with a network of over 2,500 points of sale for cash-in.

  • Strengths: cash option for customers without bank cards
  • Limitations: limited API functionality

How to Choose a Payment Gateway in Morocco

Choosing a gateway depends on several criteria:

1. Desired Integration Type

TypeDescriptionFor whom?
CMS PluginPre-built extension for Shopify, WooCommerce, PrestaShopE-merchants without a technical team
Hosted page (redirect)Customer is redirected to the provider's payment pageBusinesses wanting quick integration
REST APIDirect integration into your application via APIFintechs, platforms, mobile apps
Mobile SDKDevelopment kit for iOS/Android appsNative mobile applications

2. Accepted Payment Methods

In Morocco, the main online payment methods are:

  • Bank cards (Visa, Mastercard) — the most common
  • Maroc Pay — the national QR code mobile payment system
  • Wallets — electronic wallets (Cash Plus, Wafacash, etc.)
  • Bank transfer — for B2B payments and large amounts

3. Technical Criteria

  • API documentation — is it complete and up to date?
  • Sandbox environment — can you test before going live?
  • Webhooks — do you receive real-time notifications?
  • Dashboard — reporting, analytics, refund management
  • Uptime and performance — what is the guaranteed availability?

4. Fees and Pricing

Compare carefully:

  • Per-transaction fees (percentage + fixed)
  • Setup fees
  • Monthly subscription
  • International card fees
  • Chargeback fees

Payment Gateway Comparison in Morocco

CriteriaCMIPayzoneChari PayAmanPay
Moroccan cardsYesYesYesYes
International cardsYesYesYesLimited
Maroc PayNoNoYesNo
3D Secure 2.0YesYesYesYes
Modern REST APILimitedBasicYesBasic
Testing sandboxYesYesYesNo
Shopify pluginVia partnerYesYesNo
WooCommerce pluginVia partnerYesYesNo
Recurring paymentsLimitedYesYesNo
Cash paymentNoNoVia Chari networkYes
DocumentationPDFBasicOnline API docsBasic
Technical supportEmailEmail/PhoneEmail/Phone/ChatEmail

Practical Integration: Code Examples

REST API Integration (Chari Pay Example)

Gateway integration via API typically follows this flow:

1. Your server → POST /api/payments/initiate
2. The gateway returns a payment URL or token
3. The customer completes payment (3D Secure)
4. The gateway sends a webhook with the status
5. Your server confirms the order

Shopify Integration

For Shopify stores in Morocco, integration is simplified:

  1. Install the gateway app from the Shopify App Store
  2. Configure your merchant credentials
  3. Activate production mode after testing
  4. Payments are automatically reconciled

For more details, see our dedicated Shopify guide.

WooCommerce Integration

WooCommerce (WordPress) is very popular in Morocco for e-commerce:

  1. Install the gateway plugin
  2. Configure the API key and secret in WooCommerce settings
  3. Test in sandbox mode
  4. Switch to production

See our complete WooCommerce guide for step-by-step instructions.

Use Cases in Morocco

E-commerce and Marketplaces

Online stores are the primary use case for payment gateways. Whether it's a single-vendor store or a multi-vendor marketplace, the gateway handles collection, payment splitting, and settlement to sellers.

Subscriptions and SaaS

Moroccan SaaS companies use recurring payments to automatically bill their customers each month. Tokenization allows secure storage of card references.

Bill Payment

Telecom operators, utilities, and insurance companies allow their customers to pay bills online via a payment gateway integrated into their customer portal.

Fintechs and Super-Apps

Moroccan fintechs integrate gateways via API to create innovative payment experiences: buy-now-pay-later (BNPL), QR payments, wallet top-ups, and more. ChariBaaS provides a complete online payment solution with modern APIs suited to these use cases.

Regulation in Morocco

Online payment in Morocco is governed by:

  • Bank Al-Maghrib — the banking regulator that oversees payment institutions and payment systems
  • Law 103-12 — relating to credit institutions and similar bodies, governing payment activities
  • Exchange Office — for foreign currency transactions and international trade
  • CMI — which sets the technical rules for the interbank network

Any business wishing to accept card payments in Morocco must be affiliated with CMI through an acquiring bank and comply with PCI-DSS and 3D Secure standards.

How ChariBaaS Can Help

ChariBaaS simplifies payment acceptance in Morocco through:

  • A unified gateway — bank cards, Maroc Pay, wallets, bank transfers — all in one API
  • Modern APIs — interactive documentation, sandbox, real-time webhooks
  • E-commerce payments — Shopify, WooCommerce, and direct API integration for your platforms
  • Built-in compliance — PCI-DSS, 3D Secure 2.0, and Bank Al-Maghrib compliance included
  • A network of 50,000+ points of sale — for cash-in via the Chari network

Whether you're an e-merchant, a fintech, or a business looking to integrate payments into your application, explore our online payment services or check out our API documentation.


Looking to integrate a payment solution in Morocco? Contact our team to discuss your project and get sandbox access.

Frequently Asked Questions

What is the best payment gateway in Morocco?
It depends on your needs. CMI is the standard for card acceptance. Payzone offers multi-channel integration. ChariBaaS via Chari Pay provides a complete gateway with 3D Secure, Maroc Pay, and modern APIs — ideal for fintechs and platforms seeking fast integration.
How do I integrate a payment gateway on my website in Morocco?
You have three options: use a pre-built plugin (Shopify, WooCommerce), integrate via a hosted payment page (redirect), or integrate directly via REST API for a custom experience. Most Moroccan gateways provide technical documentation and a sandbox testing environment.
How much does a payment gateway cost in Morocco?
Fees vary by provider. Typically, expect 1.5% to 3.5% per transaction for local bank cards, plus possible fixed fees. Some providers charge setup fees or a monthly subscription. International cards generally have higher fees.
Can I accept international payments in Morocco?
Yes. Gateways like CMI and Chari Pay accept international Visa and Mastercard. However, you must comply with the Exchange Office and Bank Al-Maghrib regulations regarding foreign currency flows. Settlement is in MAD after conversion.