Login expired. Please log in again.

Feedback

0/300

Feedback

Submitted successfully

ok

Feedback

Network exception, please try again later

ok

Store Run on Mobile Applications

Merchants who have App or WeChat mini programs can refer to this part to integrate WeChat Pay.

Scenario Description

If a merchant runs its store on a released app, the In-App Payment (What is In-APP payment) provided by WeChat Pay can be used. The user experience flow map is shown below:

After a user initiates a payment request, the merchant sends the request to the institution, and the institution then requests WeChat Pay to obtain the pre-payment ID and returns the ID merchant. Finally, the merchant uses the WeChat SDK to redirect the user to WeChat to complete the payment. After completing the payment, the user will be automatically redirected from WeChat to the merchant's app.

Parameter Configuration

In this scenario, besides the basic parameter settings, including Parameters needs to be applied, API key configuration and Certificate configuration, the following configurations are also required:

  • 1Register App

    In-App Payment requires a sub-merchant to register an app on WeChat Open Platform. Note that the entity for registration must be consistent with that of the sub-merchant ID generated by the institution.

  • 2Obtain sub_appid

    Once the app is registered and the entity is successfully authenticated, the sub-merchant can view the corresponding appid on the open platform, as shown below:

  • 3Link sub_appid with sub_mch_id

    After the sub-merchant obtains the appid, it needs to sync the appid with the institution. The institution will then link the sub_appid with sub_mch_id on the sub-merchants management page.

Precautions

Parameter transfer rules for In-App Payment are slightly different from those of other payment modes. Refer to API Rules for details.

Scenario Description

Mini Program has now become an indispensable part of people's daily life in mainland China. More and more merchants are trying to integrate their common services in Mini Program. Compared with traditional apps, Mini Program is easy to use with no installations required. Developed based on native elements, it also features faster loading speed than traditional web pages and has now been integrated with the payment feature. After the users finish selecting products in Mini Program, WeChat Pay can be launched directly for users to complete the payment. The user experience flow map is shown below:

Parameter Configuration

In this scenario, besides basic parameter settings, including Parameters needs to be applied, API key configuration and Certificate configuration, the following configurations are also required:

  • 1Apply for Mini Program

    Mini Program Payment requires the sub-merchant to apply for Mini Program registration on Mini Program Platform. Note that the entity for registration must be consistent with that of the sub-merchant ID generated by the institution.

  • 2Obtain sub_appid

    Once the Mini Program is registered and the entity is successfully authenticated.

  • 3Link sub_appid with sub_mch_id

    After the sub-merchant obtains the appid, it needs to sync the appid with the institution. The institution will then link the sub_appid with sub_mch_id on the sub-merchants management page.

  • Complete

Precautions

Parameter transfer rules for Mini Program Payment are slightly different from those of other payment modes. Refer to API Rules for details.

About  WeChat  Pay

Powered By Tencent & Tenpay Copyright©

2005-2022 Tenpay All Rights Reserved.

Contact Us
Wechat Pay Global

WeChat Pay Global