
Introduction: The Subscription Economy Reaches Morocco
The subscription model is transforming economies worldwide, and Morocco is no exception. From telecom plans to SaaS platforms, gyms and streaming services, Moroccan consumers and businesses are increasingly adopting recurring payments. According to Bank Al-Maghrib data, automatic card transactions grew by over 35% between 2024 and 2025, a clear signal of market maturity.
For businesses, recurring payments represent a major growth lever: predictable revenue, reduced churn from forgotten payments, and improved customer experience. However, implementing recurring payments in Morocco raises specific technical, regulatory and operational questions.
This guide covers the entire topic: definition, technical methods, use cases, API integration, failure management, legal framework and comparison of available solutions in Morocco in 2026. Whether you are a fintech, a SaaS provider, a telecom operator or a gym manager, you will find the information needed to deploy reliable and compliant recurring billing.
What Is a Recurring Payment?
A recurring payment refers to any charge processed automatically and repeatedly, on a predefined schedule, against a customer's payment method. Unlike a one-time payment, the customer authorizes the charge only once, and subsequent charges are executed without manual intervention.
Types of Recurring Payment
There are three main models:
- Fixed recurring -- The same amount is charged at each billing cycle. Example: monthly gym membership at 300 MAD/month.
- Variable recurring -- The amount changes each billing cycle based on consumption or specific parameters. Example: monthly telecom bill based on data usage.
- Metered billing -- The amount is calculated after the fact based on actual service usage. Example: cloud platform billing per API call or storage volume.
Each model has technical implications. Fixed recurring is the simplest to implement. Variable recurring and metered billing require a billing engine capable of calculating the amount before triggering the charge.
Technical Methods for Recurring Payments
In Morocco, several methods enable recurring payments. The choice depends on the sector, average transaction amount and customer profile.
Card Tokenization
This is the most widespread method for online recurring payments in Morocco. During the first payment, the customer's card is authenticated via 3D Secure, then the card information is replaced by a token stored securely. Subsequent charges use this token without the customer needing to re-enter card details or validate an OTP code.
Tokenization complies with the PCI-DSS standard and is the method recommended by Bank Al-Maghrib for recurring card charges. To understand how this works within Moroccan payment gateways, see our dedicated guide.
Bank Direct Debit
Bank direct debit works through interbank transfers. The customer signs a mandate authorizing the business to debit their bank account at regular intervals. This mandate is registered with the customer's bank. The creditor then sends debit orders via the Moroccan interbank network.
This method is common for large amounts (insurance, loans, rent) but is more complex to set up: paper or electronic mandate, processing times of 2 to 5 business days, and rejection handling.
Wallet Recurring Payment
With the rise of wallets in Morocco, some electronic wallets are beginning to offer recurring payment features. The customer authorizes periodic debits from their wallet balance. This method is still limited in volume but is gaining relevance, particularly for recurring micropayments.
Standing Orders
A standing order is an instruction given by the customer to their bank to make regular transfers to a designated beneficiary. Unlike direct debit, the customer (not the creditor) initiates the order. This method offers less control to the merchant and does not allow automatic amount adjustments.
How Card Tokenization Works
Tokenization is the technical backbone of recurring card payments in Morocco. Here is the detailed flow:
First Payment (Enrollment)
- The customer selects a subscription and enters card details on the secure payment page
- The payment gateway sends an authorization request with 3D Secure authentication
- The customer validates the transaction via an OTP code sent by their bank
- The transaction is authorized. The gateway generates a unique token associated with the card
- The token is stored in the merchant's system (not the card number)
Subsequent Charges
- At each billing date, the merchant's system sends a charge request to the gateway with the token
- The gateway resolves the token to card information and sends an authorization request to the issuing bank
- No 3D Secure required (the initial consent covers recurring charges)
- The bank authorizes or declines. The merchant receives the result in real time via webhook
This mechanism enables seamless charges without friction for the customer, while maintaining a high security level through PCI-DSS compliance.
Use Cases for Recurring Payments in Morocco
Recurring payments cover a broad range of sectors in Morocco. Here are the main ones:
Telecoms
Moroccan operators (Maroc Telecom, Orange, inwi) use automatic debits for postpaid plans. The amount varies each month based on consumption (variable recurring model).
Insurance
Insurance companies offer monthly or quarterly premium debits. Bank direct debit with a mandate remains dominant in this sector, but card tokenization is gaining ground for affinity insurance and micro-insurance products.
SaaS and Software
Moroccan software publishers and businesses using SaaS tools bill on a monthly or annual subscription basis. Card tokenization is the preferred method, with fixed amounts or tiers based on the number of users.
Sports Clubs and Gyms
Gyms in Morocco are migrating to subscriptions with automatic debits, replacing cash or check payments. The fixed monthly amount simplifies management for both parties.
Education and Tuition
Private schools and training institutes increasingly offer tuition payment through monthly automatic debits, reducing late payments and administrative burden.
Property Management (Syndic)
Managing co-ownership charges is a fast-growing use case. Monthly automatic debit of syndic fees eliminates manual follow-ups and improves collection rates.
Streaming and Digital Content
Video and music streaming services, whether international or local, rely entirely on recurring card payments via tokenization.
Integration Guide: Recurring Payment API Flow
Integrating a recurring payment system via API follows a precise flow. Here are the key steps, illustrated with the Chari Pay API model (available in our API documentation).
Step 1: Create a Subscription
POST /api/v1/subscriptions
{
"customer_id": "cust_abc123",
"plan_id": "plan_monthly_300",
"payment_method": "card_token_xyz",
"billing_cycle": "monthly",
"start_date": "2026-05-01",
"amount": 30000, // in centimes (300.00 MAD)
"currency": "MAD"
}
The API returns a subscription object with a unique identifier and active status.
Step 2: Automatic Charge
At each billing date, the system automatically triggers a charge:
POST /api/v1/charges
{
"subscription_id": "sub_def456",
"amount": 30000,
"currency": "MAD",
"token": "card_token_xyz"
}
The charge.succeeded or charge.failed webhook is sent to the merchant in real time.
Step 3: Handle Failures
When a charge fails (insufficient funds, expired card), the system enters an automatic retry cycle (see next section).
Step 4: Cancellation
POST /api/v1/subscriptions/{id}/cancel
{
"cancel_at": "period_end", // or "immediately"
"reason": "customer_request"
}
The customer can also cancel from the customer portal. The API sends the subscription.cancelled webhook.
Managing Failed Payments
Payment failures are inevitable. Expired cards, insufficient funds, technical issues: without proactive management, these failures lead to significant revenue loss. Here are the best practices.
Retry Logic
An effective recurring payment system automatically retries failed charges on a progressive schedule:
- D+1: first retry (the issue may have been temporary)
- D+3: second retry
- D+7: third retry
- D+14: final attempt before subscription suspension
Each attempt is logged and the customer is notified of the result.
Dunning (Customer Follow-Up)
Dunning refers to the process of communicating with the customer whose payment has failed:
- Email and SMS notification upon failure
- Reminder before each new attempt
- Final message before suspension, with a link to update the payment method
- Dedicated page allowing the customer to enter a new card
Automatic Card Update (Account Updater)
Visa and Mastercard networks offer the Account Updater service, which automatically updates tokens when a card is renewed or its details change. This service, available through certain Moroccan gateways including Chari Pay, significantly reduces failures related to expired cards.
Proactive Notifications
The best solutions alert the customer before problems arise:
- Notification 30 days before card expiry
- Reminder of upcoming charge 3 days before the billing date
- Confirmation after each successful charge
Legal and Regulatory Framework
Recurring payments in Morocco operate within a specific regulatory framework. Businesses must comply with several obligations.
Consumer Consent
The customer must provide explicit, free and informed consent before setting up a recurring charge. This consent must be provable (electronic signature, recorded checkbox, 3D Secure validation of the first payment). Implicit or pre-checked consent is not valid.
Cancellation Rights
Moroccan consumer protection law (Law 31-08) guarantees the customer's right to cancel a subscription. The business must provide a simple, accessible and effective cancellation mechanism. Cancellation cannot be subject to excessive fees or dissuasive procedures.
Data Protection
Storage and processing of payment data are governed by Law 09-08 on the protection of individuals with regard to personal data processing. Card tokens must be stored securely (PCI-DSS standard) and customer data may only be used for the purposes for which consent was given.
Transparency Obligations
The business must inform the customer clearly and in advance: amount, frequency, charge date, modification conditions and cancellation procedure. Any change to the terms must be communicated with reasonable notice.
Comparison of Solutions in Morocco
Several providers offer recurring payment solutions in Morocco. Here is a comparison of the main options.
CMI (Centre Monetique Interbancaire)
CMI is the central infrastructure for card payments in Morocco. It offers tokenization and recurring payments through gateways that connect to it. CMI does not directly provide a subscription management API: it processes tokenized transactions transmitted by partner gateways.
- Tokenization: yes
- Subscription API: no (via partner gateways)
- Automatic retry: no
- Dunning: no
Chari Pay
Chari Pay, the ChariBaaS gateway, offers a complete recurring payment solution with a modern API, automatic retry management, integrated dunning and a monitoring dashboard. The solution is connected to CMI for card processing and also supports Maroc Pay.
- Tokenization: yes (PCI-DSS Level 1)
- Subscription API: yes (REST + webhooks)
- Automatic retry: yes (configurable)
- Dunning: yes (email + SMS)
- Account Updater: yes
Payzone
Payzone offers an online payment solution with tokenization. Subscription management is available but less granular than Chari Pay in terms of retry configuration and dunning.
- Tokenization: yes
- Subscription API: partial
- Automatic retry: basic
- Dunning: limited
How ChariBaaS Can Help
ChariBaaS offers a complete online payment solution, including a recurring billing module designed for the Moroccan market.
Recurring Billing API
Our REST API lets you create and manage subscriptions in just a few lines of code. See the technical documentation for detailed specifications. Key features include:
- Creation of subscription plans with fixed, variable or metered amounts
- Full lifecycle management: creation, modification, suspension, cancellation
- Real-time webhooks for every event (successful charge, failure, cancellation)
- Multi-currency support (MAD, EUR, USD)
Automatic Failure Management
The Chari Pay retry engine is fully configurable: number of attempts, intervals, actions upon definitive failure. Integrated dunning handles customer communications (email, SMS) without manual intervention.
Monitoring Dashboard
The ChariBaaS dashboard provides a complete view of your active subscriptions, charge success rate, churn and monthly recurring revenue (MRR). Reports are exportable and alerts are configurable.
Support
Our team supports businesses in setting up their recurring payment system: needs assessment, billing model selection, technical integration and compliance. Contact us for a free consultation.
FAQ
Is recurring card payment possible in Morocco?
Yes. Moroccan payment gateways support recurring card payments through tokenization. The card is registered during the first payment (with 3D Secure), then subsequent charges are processed automatically via the token, without any customer intervention.
How does automatic debit work in Morocco?
Two methods: bank direct debit (SEPA-like transfer via the interbank network, with a signed mandate) and recurring card payment (via tokenization). Card payment is faster to set up and does not require a paper mandate.
Which sectors use recurring payments in Morocco?
Main sectors: telecoms (plans), insurance (premiums), SaaS and software, sports clubs and gyms, streaming services, education (tuition), property management (syndic), and press subscriptions. Demand is growing rapidly with digitalization.
How to handle recurring payment failures?
Best practices include: automatic retries (retry at D+1, D+3, D+7), customer notifications before and after failure, automatic update of expired cards (account updater), and a payment method update page. Chari Pay handles these cases automatically.
Frequently Asked Questions
- Is recurring card payment possible in Morocco?
- Yes. Moroccan payment gateways support recurring card payments through tokenization. The card is registered during the first payment (with 3D Secure), then subsequent charges are processed automatically via the token, without any customer intervention.
- How does automatic debit work in Morocco?
- Two methods: bank direct debit (SEPA-like transfer via the interbank network, with a signed mandate) and recurring card payment (via tokenization). Card payment is faster to set up and does not require a paper mandate.
- Which sectors use recurring payments in Morocco?
- Main sectors: telecoms (plans), insurance (premiums), SaaS and software, sports clubs and gyms, streaming services, education (tuition), property management (syndic), and press subscriptions. Demand is growing rapidly with digitalization.
- How to handle recurring payment failures?
- Best practices include: automatic retries (retry at D+1, D+3, D+7), customer notifications before and after failure, automatic update of expired cards (account updater), and a payment method update page. Chari Pay handles these cases automatically.