E-Commerce Plugins

OpenCart

15min

Overview

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



Requirements

Plugin needs the following requirements to run:

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


Plugin Download

To get the plugin, Download the last version from below the links:



Installation

There are two options for uploading a plugin:

Installation by copying the files

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



Directly from the admin section

  1. Log in to Admin -> Extensions -> Installer
  2. Click the Upload button, then select moyasar.ocmod.zip
  3. Go to Extensions -> Extensions -> Payments
  4. Find the Moyasar Payment Method in the list of extensions
  5. Click Install.


Configuration

  1. Click Edit the payment module settings.
Edit configeration options
Edit Configuration

Moyasar's plugin settings


2. Set Extension Status to Enable and put your API keys found in Moyasar's dashboard then click on Save.

Status option
Status option


You cannot use Apple Pay or STC Pay while using the test environment keys

3. Go to Extensions -> Modifications, and click the Refresh Button.

Refersh modifications
Refersh modifications


4. Go to Dashboard -> Developer Settings then clear cache.

Clear Cache
Clear Cache



Webhooks

Moyasar uses webhooks to notify your application every time a payment changes its state. The notification is an asynchronous request which means you don’t have to trigger it.

To set a webhook endpoint follow these steps:

  1. Go to the admin panel
  2. Go to Moyasar settings.
  3. Find a field called Webhook and secret token, and take note of these.
  4. Login to the Moyasar dashboard
  5. Go to settings -> Webhooks
  6. Click on Add Webhook
  7. Paste the URL and secret token that you got from Step 3.


Apple Pay Configuration

To configure Apple Pay, you will need to register your domain in Moyasar's dashboard. For more details follow this guide.



Support

If you need any assistance, please contact us via the Moyasar Care email [email protected] or through open a support ticket at the bottom right corner and provide us with the below information:

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



Updated 03 Oct 2024
Did this page help you?