Magento2
Use Moyasar's plugin for the Magento2 platform to accept e-Payments.
To start using Moyasar's Magento2 version 5:
Moyasar plugin needs the following requirements to run:
- Magento 2. x.
- PHP >= 7.1.
- Composer >= 2.x.
Install the plugin using Composer (version 5).
Enable the Moyasar module.
Register the extension:
Deploy Magento Static Content:
- Login inside the Admin Panel and go to Stores -> Configuration -> Sales -> Payment Methods.
- Find Moyasar Gateway payment in the list of payment methods.
Generating invoices of completed orders automatically.
If an error occurs after payment, we will refund the amount and cancel the order.
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:
- Go to Settings -> Webhooks
- Click on Add Webhook
- Put the Webhook URL & Webhook Secret and keep the other settings as is
This is another option to retrieve the payment state of the pending orders.
Webhooks & Cron Job ensure order continuity in case of payment disruption.
Moyasar plugin supports three payment methods: Credit Card, Apple Pay, and STC Pay.
Each payment can be enabled individually, and the title can be customized.
Enable the Credit Card method by setting Enabled to Yes and selecting the required schemas.
Enable the Apple Pay method by setting Enabled to Yes, and ensure that your store's domain is activated.
Apple Pay method will use the same schemas as the credit card method.
To activate Apple Pay, register your domain in Moyasar's dashboard.
For more details follow this guide.
This method won't appear to the customer if the browser doesn't support Apple Pay.
Enable the STC Pay method by setting Enabled to Yes,
Apple Pay or STC Pay methods won't work if you are using Testing Environment Keys.
To migrate from 3 or 4 to 5, delete the old plugin and follow the installation section.
To get to migrate the plugin from 3 to 4, you need to follow these steps:
- Delete the old plugin
- Unpack it and upload Moyasar contents to <root>/app/code/Moyasar/Mysr
- Clear Magento cache
5. Compile DI (Dependency Injection) again
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.