WeChat Pay

WeChat Pay
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 modifies existing opencart3 embedded WeChat Pay module and adds WeChat H5 Payment API and JSAPI. After installation, it will auto call H5 payment API and JSAPI based on customers' browser.

Please register a Wechat pay Merchant Account on Wechat's Merchant Platform and request WeChat Pay API.

1)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

2)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.


    Integrate WeChat Pay JSAPI
    Integrate WeChat Pay H5 Payment API
    Need to register WeChat Social Media Account and WeChat Pay Merchant Account by submitting application form on WeChat pay official site (Extra fee may be charged by WeChat pay)
    Note: Source codes have been encrypted.

-Configure App id and app secret in embedded opencart 3.x wechat module (which only has scan qr code feature) before use our module (add jsapi and h5 api )
-To use jsapi, please configure your wechat official account on https://mp.weixin.qq.com/ before use it. More details seen here: https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=7_3
-For JSAPI configuration in WeChat official account, payment authorization catalog requires full path: http://www.yourdomain.com/index.php?route=extension/payment/wechat_pay/qrcode
-No configuration for WeChat Pay H5 Pay and JSAPI in opencart backend. After installation, it will auto call H5 payment API and JSAPI based on customers' browser.

Additional Information:
Support Opencart 3.x OCMOD
Contact: info@sunflowerbiz.com


  • Developed by OpenCart Community
  • 12 Months Free Support
  • Documentation Included


Compatibility,,,, 4.x.x.x,,,,,,,,

Last Update
9 Oct 2021

27 Sep 2018
4 Sales
Member since: 2 Feb 2012

View all extensions Get Support