OpenCart
Use Moyasar's plugin for the Opencart platform to offer payments online.
Plugin needs the following requirements to run:
- OpenCart >= 2.0 or OpenCart >= 3.0.
- PHP >= 5.4.
To get the plugin, Download the last version from below the links:
There are two options for uploading a plugin:
- Copy the content of each folder, to your open cart 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.
- 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.
- Click Edit the payment module settings.
2. Set Extension Status to Enable and put your API keys found in Moyasar's dashboard then click on Save.
You cannot use Apple Pay or STC Pay while using the test environment keys
3. Go to Extensions -> Modifications, and click the Refresh Button.
4. Go to Dashboard -> Developer Settings then clear cache.
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:
- Go to the admin panel
- Go to Moyasar settings.
- Find a field called Webhook and secret token, and take note of these.
- Login to the Moyasar dashboard
- Go to settings -> Webhooks
- Click on Add Webhook
- Paste the URL and secret token that you got from Step 3.
To configure Apple Pay, you will need to register your domain in Moyasar's dashboard. For more details follow this guide.
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.