Merchants who have App or WeChat mini programs can refer to this part to integrate WeChat Pay.
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.
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:
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.
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:
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.
Parameter transfer rules for In-App Payment are slightly different from those of other payment modes. Refer to API Rules for details.
Customer Service Tel
Business Development
9:00-18:00
Monday-Friday GMT+8
Technical Support
WeChat Pay Global
ICP证