How to develop and realize WeChat Pay's network-wide publishing function
Editor to share with you how to develop and achieve WeChat Pay's network-wide release function, I believe most people do not know much about it, so share this article for your reference, I hope you will learn a lot after reading this article. Let's learn about it!
Network-wide release refers to the detection and release of WeChat Pay's rights protection function, alarm interface and shipping interface in the last step of the backstage.
This paper is divided into the following three parts:
WeChat Pay directory settings
Adjustment of shipping interface
The adjustment of rights protection interface and alarm interface
First, WeChat Pay directory setting
The setting of WeChat Pay's URL is closely related to the transfer of WeChat Pay. Several URL settings we use here are as follows:
Payment Test URL: http://www.fangbei.org/wxpay/jsapi/index.php
Deal Notification URL: http://www.fangbei.org/wxpay/notify/index.php
Notify URL: http://www.fangbei.org/wxpay/rights/index.php of rights protection
Alarm notification URL: http://www.fangbei.org/wxpay/alarm/index.php
Second, the adjustment of shipping interface
Before invoking the shipping interface, you need to have a transaction before you can send it, so complete a jsapi payment first. The code is as follows
Function callpay () {WeixinJSBridge.invoke ('getBrandWCPayRequest',function (res) {WeixinJSBridge.log (res.err_msg); alert (res.err_code+res.err_desc+res.err_msg);});}