Getting paid on Shopify in Morocco
A Shopify store, Moroccan customers — how to accept cards and cash in dirhams, with the money available instantly in a payment account.
Your Shopify store is up, your products are online, your first Moroccan customers are arriving — and payment is where it jams. The international gateways offered by default don't settle in dirhams to a Moroccan account, and part of your buyers simply don't have a card. Here is how ChariPay closes both gaps, without waiting for a plugin or changing platforms.
Cash on delivery costs you more than it earns
In Morocco, the Shopify reflex is to switch on cash on delivery. It converts, but you know the bill: refused parcels, cash riding along with the courier, month-end reconciliation that never ties out. The problem isn't cash — it's untracked cash.
ChariPay is the only payment gateway in Morocco that also collects cash at agencies: your customer receives a reference, deposits the amount at an agency of the Chari network, and you are notified the second the network confirms the deposit. The money never travelled with a courier, and the parcel can ship already paid.
First level: the payment link, without writing a line of code
The shortest circuit for a Shopify store:
- 1The order comes in (or the customer writes to you on WhatsApp or Instagram — in Morocco, you know that's where everything happens).
- 2From the ChariPay portal, you create a payment link for the order amount — card or cash, the customer chooses.
- 3You send the link by WhatsApp or e-mail. The customer pays on a hosted page, with 3-D Secure for cards.
- 4The successful payment credits your payment account instantly, and you mark the order as paid in Shopify.
No integration, no developer: the portal, a link, a payment. For a store handling a few dozen orders a day, that is often all it takes.
Second level: checkout through the API, to automate
When volume grows, your developer wires up the API: on every Shopify order, your back office creates a payment session (POST /v1/payment-sessions) and redirects the customer to the ChariPay hosted checkout. The result comes back through a signed webhook — the one source of truth — and your system marks the order paid with no human in the loop. Webhooks can be replayed from the portal if your server was down, and idempotency rules out double charges.
The sandbox is free and self-serve: your developer signs up online, gets a test key and makes a first call the same day — the Getting started guide in the API docs walks through the eight requests.
What it changes, concretely
- The money is there right away. Every successful payment is available instantly in your ChariPay payment account — a real account with a RIB in your company's name. You pay a supplier in the morning with last night's takings.
- Cards and cash in one reconciliation. One statement, one export, two payment methods.
- The payout to your bank follows. Automatic every night once a settlement account is configured, or a transfer on demand.
Where to start
Create your sandbox account — online, no meeting required — and test a payment link in five minutes. When you are ready, the integration team walks you through going live: a one-time MAD 6,000 activation fee (VAT included), and a commission per successful payment set once your application has been reviewed.
Written by ChariPay team.