Skip to content
OpenCart · User manual

CMI ECOM Payment gateway

Version 1.0.1
Chapter 1

Overview

CMI ECOM Payment gateway sends your OpenCart customers to the secure CMI hosted payment page and updates each order from the signed result that CMI returns.

What the extension does

CMI ECOM Payment gateway adds a card payment method to your checkout for merchants of the Centre Monétique Interbancaire (CMI) in Morocco. Customers enter their card details on the CMI hosted payment page, never in your store.

  1. The customer chooses the CMI payment method and presses Pay with CMI.
  2. The order is saved with your pending order status and the customer is sent to the CMI payment page, in English, French or Spanish depending on the language of your store.
  3. CMI processes the payment, including 3D Secure when it is enabled for your merchant account.
  4. CMI notifies your store server to server. The extension checks the signature of the message and the amount, saves the transaction details and sets the paid or failed order status.
  5. The customer returns to the order success page, or to the checkout with an error message.

Main points:

  • Hosted payment page of CMI (3D Pay Hosting). Your server never stores card numbers.
  • Every request and answer is signed with a SHA-512 hash (version 3) calculated with your store key.
  • Test and production modes, each with its own CMI address.
  • Payments are sent as a pre-authorisation. The capture mode decides whether your store asks CMI to capture the amount at once or leaves it authorised.
  • An optional link to your terms of sale, with a checkbox the customer must tick before paying.
  • Checkout texts in English and Spanish. Administration in English and Spanish.

Requirements

RequirementDetail
OpenCart1.5.6.4 and 3.0.3.3
CurrencyMoroccan dirham (MAD). The order must be placed in MAD; other currencies are refused
Store URLHTTPS, reachable from the internet, so that CMI can send its payment notifications
CMIAn approved CMI merchant account with its client ID (MID), store key and the CMI production address
LicenceA valid DevmanExtensions licence for this product

Your merchant agreement, fees and 3D Secure configuration are arranged with CMI. They are not part of the extension licence.

How this manual is organised

Quick start

  1. Get your client ID, store key and production address from CMI.
  2. Make sure your store has the Moroccan dirham with the code MAD and that customers pay in it.
  3. Install the package for your OpenCart version and validate your licence.
  4. Enter Client ID (MID) and Store Key, keep Gateway Mode on Test, check the three order statuses and turn Status on.
  5. Run the CMI test scenarios: an approved payment, a declined payment and a cancelled payment.
  6. Enter the Production URL, set Gateway Mode to Production and save.

Still need help?

Open a support ticket from your account and our team will look at your store with you.