Get 10% off entire order over $299! 15% over $499 !

[Magento2] WeChat Pay

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

Available Options



WeChat is 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.

SunflowerBiz WeChat Pay Extension integrates 3 WeChat Pay APIs: 1) QR Code API 2) JSAPI 3) H5 Payment API

Before using this payment module, you have to register Wechat Official Account and Wechat pay Merchant Account on Wechat pay official site to get all necessary info after submit application documents and get approved by WeChat pay (Extra fee may be charged by China WeChat pay)

PLEASE NOTE: We offer two different WeChat Pay extensions and it is important that you verify you are purchasing the correct one. This WeChat Pay module integrates the Native WeChat Pay API, oriented to local Chinese companies or companies with business license in China. And our WeChat Pay Overseas module integrates WeChat Pay Overseas API which is designed for overseas customers.


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 in order to complete payment. This mode is applicable 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 in 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 non-wechat browsers to call wechat payment module via H5 Payment API to pay their transaction.
Merchants are required to have h5 website which have already finished ICP filing. 



  1. Integrate WeChat Pay QR Code API
  2. Integrate WeChat Pay JSAPI
  3. Integrate WeChat Pay H5 Payment API
  4. Need to register WeChat Official Account and WeChat Pay Merchant Account by submitting application form on WeChat pay official site (Extra fee may be charged by WeChat pay) 


1. System _setting

2. Frontpage

3. Scan QR code to Pay



Additional Information:

Support magento 2.x+

Support Community and Enterprise Version




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