Settings
All the settings are on the General Configuration tab. This chapter explains each field in the order shown on screen, with its default value.
Save your changes with the button at the top right of the page. Cancel leaves the page without saving.
Payment method
| Setting | What it does | Default |
|---|---|---|
| Status | Shows or hides the payment method in your checkout. | Off |
| Sort Order | The position of the method in the list of payment methods. | 0 |
| Checkout Title | The name of the payment method that customers see in the checkout. If you leave it empty, the checkout shows CMI Online Payment (Credit Card), translated into Spanish for Spanish customers. | CMI Online Payment |
The Checkout Title is one text for all languages. If your store is multilingual, choose a name that works in every language, or leave the field empty to use the translated default.
CMI connection
| Setting | What it does | Default |
|---|---|---|
| Client ID (MID) | Your merchant identifier, provided by CMI. | Empty |
| Store Key | The secret key shared with CMI. It signs every request sent to CMI and checks every answer. Keep it private. | Empty |
| Gateway Mode | Test sends customers to the address in Test URL. Production sends them to the address in Production URL. | Test |
| Test URL | The address of the CMI test payment page. | https://test-damanecash.cmi.co.ma/fim/est3Dgate |
| Production URL | The address of the CMI live payment page. Enter the address given to you by CMI when your account is approved for production. | Empty |
| Capture Mode | How your store answers CMI when a payment is approved. See below. | Manual (APPROVED) |
Capture Mode
The extension sends every payment to CMI as a pre-authorisation. When CMI reports that a payment is approved, your store answers in one of two ways:
- Auto (POSTAUTH): the store answers
ACTION=POSTAUTH, asking CMI to capture the authorised amount straight away. - Manual (APPROVED): the store answers
APPROVED. The amount stays authorised, and you capture it later as agreed with CMI.
Choose the mode that matches the capture process agreed in your CMI contract. If you are not sure, ask CMI before going live.
Order statuses
| Setting | What it does |
|---|---|
| Pending Order Status | Given to the order when the customer presses Pay with CMI, before leaving for the CMI page. The order is saved at this moment. |
| Paid Order Status | Given to the order when CMI confirms an approved payment. |
| Failed Order Status | Given to the order when CMI reports a declined or failed payment, or when the customer cancels on the CMI page. An order that already has the paid status is never moved back to failed. |
When you open the settings for the first time, the extension preselects statuses whose names contain Pending, Processing or Complete, and Failed, Canceled or Denied. Check them and change them if your store uses other names.
Diagnostics
| Setting | What it does | Default |
|---|---|---|
| Debug Log | Writes the data sent to CMI and the data received from CMI into the OpenCart error log. Turn it on only while you investigate a problem, then turn it off again, because the log then contains customer names and addresses. | Off |
On OpenCart 3.x, read the log in System > Maintenance > Error Logs. On OpenCart 1.5, read it in System > Error Logs.
Terms of sale
CMI may ask that your terms of sale include clauses about card payment and the role of the Centre Monétique Interbancaire, and that customers accept them before paying. These two settings add that step to the checkout.
| Setting | What it does | Default |
|---|---|---|
| Information page (terms) ID | The ID of the page in Catalog > Information that contains your terms of sale. The checkbox below links to this page. Use 0 for no page. | 0 |
| Require terms checkbox at checkout | When on, and when a valid page ID is set, the payment step shows the checkbox I have read and agree to the Terms of Sale, with a link to the page. The customer must tick it before Pay with CMI works; otherwise the message Warning: You must agree to the Terms of Sale to continue! appears. When off, or when the ID is 0, no checkbox and no link are shown. | On |
To find the ID of a page, open Catalog > Information, edit the page and look at the address bar of your browser: the number after information_id= is the ID.
Still need help?
Open a support ticket from your account and our team will look at your store with you.