OpenCart


Overview

Use Moyasar’s plugin for Opencart platform to offer payments online.

On this page


Requirements

Plugin needs the following requirements to run:

  • OpenCart >= 2.3 or OpenCart >= 3.0.
  • PHP >= 5.4.

Plugin Download


Installation

  1. Copy the content of each folder, to your opencart installation keeping the folder structure.
  2. Login to the Open Cart admin section and go to Extensions -> Extensions -> Payments.
  3. Find Moyasar Payment Method in the list of extensions.
  4. Click Install.

    Install oc


Configration

  1. Click Edit the payment module settings.

    edit oc

  2. Set Extension Status to Enable and put your API keys found in Moyasar Dashboard then Save. Note: Can’t use STC Pay or Apple Pay in Test mode.

    enable oc

  3. Go to Extensions -> Modifications.
  4. Click the Refresh Button.

    modifications oc


Apple Pay Configuration

To configure Apple Pay, you will need to generate a merchant validation certificate from your Apple Developer account.

Since OpenCart is written in PHP, you have to provide the certificate in PEM format, here is a small command that allows you to convert your certificates:

openssl x509 -inform der -in merchant_id.cer -out merchant_id.pem
openssl pkcs12 -nocerts -nodes -in merchant_id.p12 -out merchant_id.key

Upload the merchant_id.pem file in the Certificate field found in Apple Pay Settings section, same goes for merchant_id.key but in the Private Key field.

Make sure to fill the same Merchant Identifier you have created in your Apple Developer Account then hit on Save.


Support

If you need any assistance, please contact us via the support email support@moyasar.com or through live chat that at the bottom right corner and provide us with the below information:

  • Your platform.
  • The version number of the platform you use.

Last Modified : Oct 2021