[Magento2] WeChat Pay

[Magento2] WeChat Pay
[Magento2] WeChat Pay [Magento2] WeChat Pay [Magento2] WeChat Pay
Price: $99.00

Available Options


Extension Update:



WeChat is a Chinese social media (instant messaging, commerce, and payment services) mobile application software developed by Tencent. It was first released in 2011, and by 2017, it was one of the largest standalone messaging apps by monthly active users, with over 963 million monthly active users. It is widely known as one of the world's most innovative and versatile app, as well as China's "App For Everything", with numerous unique functions and platforms ranging from 'payment' to 'social media' to 'services' to 'shopping' and more, that are equivalent to multiple Google Play or Apple Store's apps, but merged into one. 

WeChat Pay is a digital wallet service incorporated into WeChat, which allows users to perform mobile payments and send money between contacts. As of March 2016, WeChat Pay has over 300 million users worldwide.

This module allows your customers to pay via WeChat Pay in the PC, WeChat Pay, and mobile browsers. In the PC browsers, when a customer is trying to pay via WeChat Pay, it will display a QR code with transaction info generated by the WeChat Pay for the customer to scan using the WeChat Pay app installed on his smartphone. In the WeChat browser or the mobile browsers, when a customer is trying to pay via WeChat Pay, it will auto call the WeChat app installed on his smartphone to complete the payment. During the process, the customer will enter his password within the WeChat app on his mobile. The customer's WeChat account and password will not be stored on your Magento store. After the payment, it will auto redirect the customer back to your Magento store, and the order status will auto change to processing on the backend. 


PLEASE NOTE: We offer different WeChat Pay extensions and it is important that you verify you are purchasing the correct one. This module integrates the Domestic WeChat Pay API provided by WeChat Pay's Domestic Platform, while our WeChat Pay Overseas module integrates  WeChat Pay Overseas API provided by Wechat Pay's International Platform.


Account & Pricing

Please register a merchant account  on WeChat Pay's Merchant Platform and request the WeChat Pay API. There are no fees in requesting the service.


Integrate 3 WeChat Pay APIs:

(1) QR Code Payment API : 

The Vendor generates a transaction QR Code according to the WeChat Payment Protocol and the Chinese Payer goes to "Scan QR Code" in their WeChat to complete payment. This mode applies to payments made on websites, physical stores, media advertising, or other scenarios. 

 4 Steps to Pay via QR Code API:

  • Use Wechat scan QR Code
  • Confirm Pay 
  • Enter Password
  • Payment successful


(2) WeChat Pay JSAPI: 

The Chinese Payer opens the Vendor's HTML5 pages on their WeChat and calls the WeChat payment module via the JSAPI interface to pay their transaction. This mode is applicable in the following scenarios:

  • The Chinese Payer enters the Vendor’s official account and completes their payment on the transaction page;
  • The Chinese Payer’s friend shares the Vendor's payment URL in a chat or Moments and the payer clicks the link to complete their payment;
  • The Payer scans the payment QR Code displayed within the Vendor’s page and opens it in a browser to complete their payment.


5 Steps to Pay via WeChat Pay JSAPI

  • Subscribe the vendors 
  • Enter password
  • Payment successful
  • Return the vendors page
  • Customer receives message


(3) H5 Payment API: 

The Chinese Payer opens the Vendor's HTML5 pages using mobile browsers to call the WeChat payment module via H5 Payment API to pay their transaction. Merchants are required to have an h5 website and also their site has already finished ICP filing. 



  • Customers can pay via WeChat Pay in the PC, WeChat Pay, and mobile browsers.
  • In PC browsers, customers will scan the QR code using the WeChat app installed on their smartphones to make the payment.
  • In WeChat Pay and mobile browsers, it will auto call the WeChat app to make the payment.
  • Customers' WeChat Pay accounts and passwords will not be stored on your Magento store.
  • Integrate WeChat Pay QR Code API
  • Integrate WeChat Pay JSAPI
  • Integrate H5 Payment API
  • PCI compliance.



1. System _setting

2. Frontpage

3. Scan QR code to Pay


4. Use Wechat app on the phone



Additional Information:

Support Magento 2.x+

Support Community and Enterprise Version

Questions/support: info@sunflowerbiz.com




Release Note
-Fixed M2.3.2 compatibility issue
V1.3.7-------1st April, 2019
-Optimized redirect scripts
V1.3.4-------29th Mar., 2019
-Fixed h5 pay ip issue
-Fixed redirect openid
V1.3.2-------Updated on 20/03/2019
-Fixed scanevent id
V1.3.1-------Updated on 25/02/2019
-Fixed jsapi redirect issue
V1.2.8-------Updated on 11/01/2019
-Fixed int total_fee
-Fixed log data
-Added event sunflowerbiz_wechat_payment_notify_success
-Optimized sign check
-Fixed Magento2.3 compatibility issue
V1.2.5-------Updated on 26/09/2018
Fixed h5 pay redirect issue
V1.2.3-------Updated on 20/09/2018
Integrated H5 payment API
V1.2.2-------Updated on 07/09/2018
Fixed redirect issue
V1.2.0-------Updated on 23/08/2018
Fixed check path
V1.1.9--------Updated on 19/08/2018
-Use js qrcode
-Fixed root path
-Fixed repeat notice
-Removed totalpaid due
V1.1.8----------Updated on 27/05/2018
Modified QR Code Script
V 1.1.6--------------Updated on 03/04/2018
-Added https QR image function
-Fixed Total Due Amount
Online Support