E-Commerce Plugins

Magento2

25min

Overview

Use Moyasar's plugin for the Magento2 platform to accept e-Payments.



Before Starting

To start using Moyasar's Magento2 version 5:



Requirements

Moyasar plugin needs the following requirements to run:

  • Magento 2. x.
  • PHP >= 7.1.
  • Composer >= 2.x.


Installation

Install the plugin using Composer (version 5).

Shell


Enable the Moyasar module.

Shell


Register the extension:

Shell


Deploy Magento Static Content:

Shell



Configuration

  • Login inside the Admin Panel and go to Stores -> Configuration -> Sales -> Payment Methods.
  • Find Moyasar Gateway payment in the list of payment methods.
Document image










Invoice Generation

Generating invoices of completed orders automatically.



Auto Void

If an error occurs after payment, we will refund the amount and cancel the order.





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





Cron Job

This is another option to retrieve the payment state of the pending orders.

Webhooks & Cron Job ensure order continuity in case of payment disruption.





Methods

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.

Credit card

Enable the Credit Card method by setting Enabled to Yes and selecting the required schemas.

Document image


Apple pay

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.

STC 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.





Migration Guide

From 3 Or 4 -> 5

To migrate from 3 or 4 to 5, delete the old plugin and follow the installation section.



From 3 -> 4

To get to migrate the plugin from 3 to 4, you need to follow these steps:

  1. Delete the old plugin
  2. Download the plugin Moyasar Magento Plugin 4.3.0.
  3. Unpack it and upload Moyasar contents to <root>/app/code/Moyasar/Mysr
  4. Clear Magento cache
Shell


5. Compile DI (Dependency Injection) again

Shell



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 15 Aug 2024
Did this page help you?