> For the complete documentation index, see [llms.txt](https://docs.ottpay.com/payment-plugins/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ottpay.com/payment-plugins/magento-plugin.md).

# Magento PlugIns

Support both of PC-Browser and Mobile-Browser/WebChat-Browser on Alipay and WeChat Pay

## :white\_check\_mark: **Plugins for Magento 2 Setup**

### :ballot\_box\_with\_check: Download of PlugIn Installation kit from the following URL

{% file src="/files/-MCItX1EEk-PoPym\_VRV" %}

{% file src="/files/-MCIzcqi8e9xl03CAB3b" %}

{% hint style="info" %}

\
&#x20;:point\_right: As a known issue of Magento Payment Process as per the following KB,

<https://github.com/PayboxByVerifone/Magento-2.3.x/issues/4>

This issue is with Magento system from 2.3.3 to 2.3.5 latest version. it is suggested to apply the fix of issue if you are using the above system versions.&#x20;

:point\_right: Note: OTT plugin package current version 2 provided the fix resolution already, you need not apply the fix anymore.
{% endhint %}

{% hint style="success" %}
Here is our approach to fix the issue, just for reference. :point\_right: [Magento Issue Fix](https://docs.ottpay.com/payment-plugins/magento-plugin/magento-issue-fix.md)
{% endhint %}

### :ballot\_box\_with\_check: **Installation of the Plugins**

:digit\_one: Step1: Upload the files to the app/code directory, the directory structure: app/code/Ottpay/…

![](https://3402525001-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M6WLd2JqAuvn1Dcj7t4%2F-M839-5vVlKPLfWOd_9h%2F-M83CtIFt5_0KlL4dRNL%2Fimage.png?alt=media\&token=ce4bb762-8918-4743-814c-b988dfdd7e16)

![](https://3402525001-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M6WLd2JqAuvn1Dcj7t4%2F-M839-5vVlKPLfWOd_9h%2F-M83EiHOUeRB6rlIW8qd%2Fimage.png?alt=media\&token=79a1c217-0ef0-4fde-af62-ab865072ed80)

:digit\_two: Step2:  Check current status of installed modules/plug-ins

Go to the root directory of the Magento website, run the following command:

```
sudo php bin/magento module:status
```

Then you will see Ottpay\_Alipay and Ottpay\_WeChat are not activated.

:asterisk\_symbol: Step3: Activate the Plugins of Ottpay\_Alipay and Ottpay\_WeChat

**sudo php bin/magento module:enable Ottpay\_Alipay Ottpay\_Wechat**

```
[ryanl@localhost magento]$pwd
/var/www/magento
[ryanl@localhost magento]$ sudo php bin/magento module:enable Ottpay_Alipay Ottpay_Wechat

The following modules have been enabled:
- Ottpay_Alipay
- Ottpay_Wechat

To make sure that the enabled modules are properly registered, run 'setup:upgrade'.
Cache cleared successfully.
Generated classes cleared successfully. Please run the 'setup:di:compile' command to generate classes.
Info: Some modules might require static view files to be cleared. To do this, run 'module:enable' with the --clear-static-content option to clear them.


```

:digit\_four: Step4: To make sure that the enabled modules are properly registered, run 'setup:upgrade'

**sudo php bin/magento setup:upgrade**

```
[ryanl@localhost magento]$pwd
/var/www/magento
[ryanl@localhost magento]$ sudo php bin/magento setup:upgrade

Cache cleared successfully
File system cleanup:
/var/www/magento/generated/code/Composer
/var/www/magento/generated/code/Dotdigitalgroup
/var/www/magento/generated/code/MSP
/var/www/magento/generated/code/Magento
/var/www/magento/generated/code/Symfony
/var/www/magento/generated/code/Yotpo
The directory '/var/www/magento/generated/metadata/' doesn't exist - skipping cleanup
/var/www/magento/pub/static/adminhtml
/var/www/magento/pub/static/deployed_version.txt
/var/www/magento/pub/static/frontend
/var/www/magento/var/view_preprocessed/pub
Updating modules:
Schema creation/updates:
Module 'Magento_AdminAnalytics':
Module 'Magento_Store':
Module 'Magento_AdobeIms':
Module 'Magento_AdobeImsApi':
Module 'Magento_AdobeStockAdminUi':
Module 'Magento_MediaGallery':
Module 'Magento_AdobeStockAssetApi':
Module 'Magento_AdobeStockClient':
Module 'Magento_AdobeStockClientApi':
Module 'Magento_AdobeStockImage':


Running schema recurring...


Module 'Amazon_Core':
Module 'Amazon_Login':
Module 'Amazon_Payment':
Module 'Dotdigitalgroup_Email':
Module 'Dotdigitalgroup_Chat':
Module 'Klarna_Core':
Module 'Klarna_Ordermanagement':
Module 'Klarna_Kp':
Module 'Magento_PaypalReCaptcha':
Module 'MSP_TwoFactorAuth':
Module 'Ottpay_Alipay':
Module 'Ottpay_Wechat':
Module 'Temando_ShippingRemover':
Module 'Vertex_Tax':
Module 'Vertex_AddressValidation':
Module 'Yotpo_Yotpo':
Enabling caches:
Current status:
Array
(
    [layout] => 1
    [block_html] => 1
    [full_page] => 1
)


```

### :ballot\_box\_with\_check: **Configuration of the Plugins**

:digit\_one: Go to Magento Website Admin > **Stores** > **Configuration** > **Sales** > **Payment Methods**&#x20;

![](https://3402525001-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M6WLd2JqAuvn1Dcj7t4%2F-M83OSJwwA2N0gASwbS7%2F-M83PHganeKktVgl2IqN%2Fimage.png?alt=media\&token=71f7251d-a30c-4ba1-9114-15e46e7e8ae1)

![](https://3402525001-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M6WLd2JqAuvn1Dcj7t4%2F-M83OSJwwA2N0gASwbS7%2F-M83OwMnsjo98fxv3Jzl%2Fimage.png?alt=media\&token=8e1b04c3-66c3-4403-9227-d98d77dfea6f)

:digit\_two: Open **Ottpay Settings-Alipay** to fill in the configuration information with merchant ID and Operator ID, Merchant Code, Sign key.  Please contact Ottpay BD team to get them once singed the service contract.

![](https://3402525001-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M6WLd2JqAuvn1Dcj7t4%2F-M83QODe8C8-upZGQROl%2F-M83QcwVuaZewPUHTrzw%2Fimage.png?alt=media\&token=63b80d4b-4ff6-410f-bb94-f8423f330eaf)

:asterisk\_symbol: Open **Ottpay Settings-WeChat** to fill in the configuration information with merchant ID and Operator ID, Merchant Code, Sign key.  Please contact Ottpay BD team to get them once singed the service contract.

![](https://3402525001-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M6WLd2JqAuvn1Dcj7t4%2F-M83RrTgwaO6UUf8rPaw%2F-M83SK8aX6nFO9uNQGU4%2Fimage.png?alt=media\&token=ba8658fb-3e2e-4307-9f97-c40a968daefe)

### :ballot\_box\_with\_check: **Payment Process Flow**

:digit\_one: **Select Payment Methods (**&#x57;eChat Pay /Ali Pa&#x79;**) as below, and Place Order**

![](https://3402525001-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M6WLd2JqAuvn1Dcj7t4%2F-M83a67E6IMaOzK991yO%2F-M83acgiHxPKZ6dIxFeo%2Fimage.png?alt=media\&token=76124704-81b2-4495-81a6-1eea33a797f3)

:digit\_two: Scan the following QR Code displayed, by using WeChat Pay /Ali Pay mobile app

![](https://3402525001-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M6WLd2JqAuvn1Dcj7t4%2F-M83az77LSlzZ5jmyT4E%2F-M83b1VXl1o8zD9a_-tP%2Fimage.png?alt=media\&token=6563d0f5-787e-4583-88c4-32d9245b64cd)

:asterisk\_symbol: Once finished payment process with WeChat Pay /Ali Pay mobile app, you will see the result information from Magento system.

![](https://3402525001-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M6WLd2JqAuvn1Dcj7t4%2F-M83eiw7L9g9IDXEp_O2%2F-M83erTOIAfaaQqr1iLA%2Fimage.png?alt=media\&token=0b6ca960-21fb-41c6-9e9f-02277562a49a)
