Store Run on Mobile Applications

Update Time:2025.03.24

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

Stores run on mobile apps
Stores run on Mini Programs

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:

1. Register 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.

2 . Obtain 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:

 

3 . Link 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.

 

 

 

About  WeChat  Pay

Powered By Tencent & Tenpay Copyright©

2005-2025 Tenpay All Rights Reserved.

Contact Us
Wechat Pay Global

WeChat Pay Global

Contact Us

Customer Service Tel

+86 571 95017

9:00-18:00 Monday-Friday GMT+8

Business Development

wxpayglobal@tencent.com

Developer Support

wepayTS@tencent.com

Wechat Pay Global

About Tenpay
Powered By Tencent & Tenpay Copyright© 2005-2025 Tenpay All Rights Reserved.