Skip to main content

OpenCart

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


Plugin Page

Visit the official Moyasar Plugin Page for more details, updates, and support resources related to the plugin.


#$ Installation

There are two options for uploading a plugin:

Installation by copying the files

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

img.png

Install Moyasar's oc plugin


Directly from the admin section

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

Configuration

  1. Click Edit the payment module settings.

img.png

Plugins Page

img.png

Configuration Page

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

img.png

Status Option

warning

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

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

img.png

Refersh modifications

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

img.png

Clear Cache


Webhooks

Moyasar uses webhooks to notify your store whenever a payment changes its state. The notification is an asynchronous request.

To configure the webhook option, follow these steps:

  1. Login to the Moyasar Dashboard
  2. Go to Settings -> Webhooks
  3. Click on Add Webhook
  4. Put the Webhook URL & Webhook Secret and keep the other settings as is
success

You take the Webhook URL & Webhook Secret from any method.

info

Webhooks ensure order continuity in case of payment disruption.


Apple Pay Configuration

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