Skip to main content

Online Payment on WooCommerce in Morocco

WooCommerce powers over 30% of online stores worldwide, and in Morocco it's the leading open-source platform. ChariBaaS provides an official WooCommerce plugin to accept CMI cards, Visa, Mastercard, Maroc Pay and wallets directly inside your WordPress site, in native MAD with no external dependency.

What is it?

WooCommerce is the open-source e-commerce extension for WordPress, used by around 30% of online stores worldwide. In Morocco, it's the dominant choice for merchants who want full control of their store without depending on a proprietary platform like Shopify.

To accept online payments on WooCommerce in Morocco, you need to install a payment gateway compatible with WooCommerce that supports local methods: CMI cards, Visa/Mastercard with 3D Secure, Maroc Pay and Moroccan wallets.

WooCommerce gateways available in Morocco:

  • ChariBaaS WooCommerce Plugin, local + international cards, Maroc Pay, wallets, native MAD, sandbox
  • CMI, domestic cards only, via third-party plugin
  • Payzone, local cards, more complex integration
  • Stripe / PayPal, not available in Morocco for local settlement

Why ChariBaaS?

The ChariBaaS WooCommerce plugin is the most complete solution for online payment on WooCommerce in Morocco.

Native WooCommerce plugin. Available on WordPress.org and our site, fully WooCommerce-standard. Hooks and filters exposed for advanced developer customisation.

Every payment method. CMI domestic cards, Visa/Mastercard international with 3D Secure 2.0, Maroc Pay (QR), e-wallets and m-wallets, transfers and BNPL. One integration.

Native MAD. WooCommerce + ChariBaaS = settlement straight to your Moroccan dirham account, no forced conversion, no hidden FX fees.

Tokenisation and recurring payments. For WooCommerce Subscriptions sites, native support for recurring debit with tokenised cards.

Open-source friendly. Documented code, WordPress hooks, translated into French and Arabic. Detailed logs for your team's debugging.

How ChariBaaS addresses this

Here's how to enable WooCommerce payments in Morocco with ChariBaaS:

  1. Install. Download the plugin from WordPress.org or our site, upload to WordPress (5 minutes).
  2. Activate. Enable the plugin and paste your ChariBaaS API keys (sandbox first).
  3. Configure WooCommerce. In WooCommerce > Settings > Payments, enable the ChariBaaS methods you want (cards, Maroc Pay, wallets).
  4. Test. Run test orders with sandbox cards.
  5. KYB. Submit your merchant documents for validation (48-72 hours).
  6. Production. Switch to production API keys. Your customers can now pay online.

Full documentation, code examples, WooCommerce hooks and signed webhooks to sync orders and inventory in real time.

Use cases

WordPress e-commerce

Collect orders for your WooCommerce store with every Moroccan payment method in a single integration.

WooCommerce Subscriptions

Compatible with WooCommerce Subscriptions for automatic monthly or yearly recurring debit in MAD.

Dokan / WC Vendors marketplace

Real-time split payments between the platform and sellers with automatic settlement compliant with regulation.

Online courses (LearnDash, LifterLMS)

Sell course access with automatic unlock after a signed-webhook payment confirmation.

WooCommerce Booking

Online bookings with immediate payment or delayed card hold for hospitality, salons and services.

Custom plugin

Documented REST API and WordPress hooks for specific integrations by your engineering team.

Frequently asked questions

Install the ChariBaaS WooCommerce plugin, paste your API keys, enable the payment methods you want (CMI cards, Visa/Mastercard, Maroc Pay, wallets) and go live after KYB validation. The plugin is free, you only pay per successful transaction.

ChariBaaS is recommended because it is the only WooCommerce Morocco gateway that unifies domestic (CMI) cards, international cards, Maroc Pay, e-wallets and transfers in native MAD, with a free sandbox, 3D Secure 2.0 and Bank Al-Maghrib compliance.

No. Stripe is not available in Morocco for merchants wishing to receive local settlements. The Stripe plugin exists for WooCommerce, but you cannot enable it as a Moroccan merchant. ChariBaaS is the compliant local alternative.

No, the plugin is entirely free. You only pay per successful transaction (from 1.8% based on volume), with no setup, no subscription, no commitment. WordPress and WooCommerce themselves remain free.

Yes. The ChariBaaS WooCommerce plugin supports Maroc Pay natively. At checkout, the customer picks Maroc Pay, scans the QR with their banking app or wallet, and the order confirms in real time via webhook.

Yes. The ChariBaaS plugin is compatible with WooCommerce Subscriptions and supports recurring debit through card tokenisation (PCI DSS compliant). Ideal for subscription sites, monthly boxes and WordPress SaaS.

No. The plugin is performance-optimised: asynchronous loading, no blocking scripts, no unnecessary requests. WooCommerce checkout stays fast. A CDN and decent WordPress hosting remain recommended for overall performance.

Ready to get started?

Request a demo and discover how ChariBaaS can power your financial products in Morocco and beyond.

Request a Demo