Micro-channel pay python summary

1, H5 micro-channel pay

1.1, Configuration

Role: After the payment is completed in H5 has permission to jump to the front end of the domain name, the domain name under the general page to complete the payment status page

Step: In the micro-channel payment business platform, Product - "Development Configuration -" H5 payments and the name

1.2, use features

H5 micro-channel payment, mainly the user's browser in the extracellular microenvironment letter app is using the micro-channel payment, such as a browser outside the micro-channel app's purchase under set order, selecting micro-channel payment, will be transferred from the micro-channel app, then enter the micro-letter app payment page for payment

1.3, after the end of the payment processing form

User after the payment is completed, click Finish, enter the payment result page, this page will show the user the payment status and other information, (this payment results page, that is, under the domain name 1.1 configuration page, only the domain name in the 1.1 configuration, the micro-letter will have the authority to jump to the next domain)

2, micro-channel payment PC (sweep the)

1.1, Configuration

no

1.2, use features

PC micro-channel payment, mainly business users can scan two-dimensional code displayed in various scenes of payment. After Saowan paid, two-dimensional code page will jump to the payment completion page or other pages

1.3, after the end of the payment processing form

After the user Saowan two-dimensional code, the payment is complete, the two-dimensional code page will jump to complete the payment of the relevant page

3, micro-channel public number payment (JSAPI)

1.1, Configuration

Step: In the micro-channel public platform, the developer - "Interface rights -" Web Authorization - "Public number set -" function setting - "Web page authorization and the name
role: consent micro letter authorized user, the micro-channel can jump back to this domain method,

  This configuration primarily to acquire code, the domain name is generally configured distal domain, i.e., in the back-end code, the code is not found, the rear end of the micro channel access interfaces/connect/oauth2/authorize,这个接口后带着参数redirect_uri,redirect_uri即为上面配置的域名加地址,成功访问微信接口/connect/oauth2/authorize后,微信会自动带着code跳到redirect_uri这个接口下,至此获得code

1.2, using a specific

In H5 mall site, the user within the micro-channel open Web page, you can call micro-channel pay to complete purchase orders process.

1.3, after the end of the payment processing form

Users pay for a click, pop-up box payment, the payment is completed, payments disappear, stay on the current page or jump to the payment result page

4, code-dependent

Micro-channel payment, logical flow primarily,
1. The first call micro-channel pay in the "unified under a single" interface after the call is successful, micro-channel will return calls an asynchronous notification interface, the asynchronous notification interface, with the coming of the merchant order number, remove micro letter "Order Tracking" interfaces, the interface query returns the payment orders is successful and other information

Wherein jsapi interface, one more step of acquiring openid, must first obtain a code openid

Gets code: # jsapi get "https://open.weixin.qq.com/connect/oauth2/authorize" after the code request address, redirect_uri parameters for the micro-channel authorization is successful, that is, after the fall connect / oauth2 / authorize this interface successfully, with micro-channel code will callback interfaces redirect_uri

Openid get through code: "https://api.weixin.qq.com/sns/oauth2/access_token" # get openid address by code

5, Code

 Cloud code: https://gitee.com/wangsa/wechat_pay

Guess you like

Origin www.cnblogs.com/wasayezi/p/11224662.html