tp5 micro-channel pay 1-- preparations

First, the preparatory work

1, when a local user to obtain authorization to test, you can first test with a micro-channel public platform [Test] test number

(1) Open the micro-channel public platform test address https://mp.weixin.qq.com/debug/cgi-bin/sandboxinfo?action=showinfo&t=sandbox/index

 

 

 

There are three points worth noting:

1) appID and appsecret, the micro-channel information can be acquired by the user of these two parameters

2) JS port security domain, where you can fill in the main site's domain name

3) development and testing staff to focus on two-dimensional code under test

2, if you do not test number, you can micro-channel public platform to [get] the corresponding parameters

The first step : First, log micro-channel public number, you can log in with the page number of public accounts directly:

 

 

 Step Two : Home number found in public background " Basic Configuration ", click on it with the mouse, enter the basic configuration page:

 

 

 

Click to open the following window.

On the right side of this window you can see the relevant configuration information here if the configuration can also modify the configuration parameters of the problem.

 

 

 Third, the binding developer Micro Signal

1, in order to ensure the safety of developer identity information for the public want to debug number, we ask developers to establish a binding relationship with the micro signal. To do is: Public No. login management background, enable the Developer Center, developer tools --web in Developer Tools page, send an invitation to developers to bind micro signal.

Binding page as shown below:

 

 

 2, the developers accept the invitation on your phone micro letter to complete the binding. Each public number which can bind up to 10 developers micro signal. Invite confirmation page shown below

 

 

 Third, the business platform settings

To micro-channel payment, you must first get to the merchant-related parameters and related settings

1, we must first bind the business in a public number, the register as a merchant

2, access to micro-channel configuration information for payment

(1) 1, landing micro letter public platform , click on the "micro-channel pay" "" business information ", the merchant acquiring business number and your micro-channel payment referred to

 

 

 (2)API秘钥(商户支付秘钥),如果您之前没有设置过API秘钥或忘记了API秘钥,请登录微信商户平台 ,在账户中心》账户设置》安全设置》API安全》API秘钥,设置API秘钥,密钥为32位。

 

 

 

(3)设置支付授权目录

登陆 微信商户平台,选择“微信支付”,进入“开发配置”

1)下载证书到你域名访问的根目录下

2)设置支付授权目录和获取商户号【mch_id】,支付授权目录 设置为【根目录】 即可

 

 注:商户支付这里的appid和公众号里的appid要一致

 四、调试平台

1、下载【微信开发者工具】,安装,登录,选择【公众号网页】

 

 二、输入地址进行测试

 

Guess you like

Origin www.cnblogs.com/ivy-zheng/p/12403576.html