Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to develop and realize WeChat Pay's network-wide publishing function

2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

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);});}

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report