Cashier
Noun interpretation
- Merchant No.: third party account, account merchant (e.g. WeChat merchant account, Alipay merchant account, Jingdong merchant account).
- Resident: refers to the user accessing the cashier
Target income
- Improve service access capability
- Build efficient delivery capabilities
- Reduce maintenance costs
Cashier target
Goal orientation
Documentation
Wechat payment H5 calls up wechat APP payment (JSSDK payment)
Wechat JS-SDK is a wechat based web development kit provided by wechat public platform for web developers.
wx.chooseWXPay({ timestamp: 0, // Pay signature timestamp. Note that all timestamp fields in wechat jssdk are lowercase. However, the timestamp field name used in the latest version of the signature generated by the payment background shall be capitalized with the S character nonceStr: '', // Payment signature random string, no longer than 32 bits package: '', // Prepay returned by the unified payment interface_ ID parameter value, submission format, such as: prepay_id=\*\*\*) signType: '', // The incoming RSA of wechat payment V3 and the incoming format of wechat payment V2 are consistent with the signature format of unified order placed by v2 paySign: '', // Payment signature success: function (res) { // Callback function after successful payment } });
http://res.wx.qq.com/open/js/jweixin-1.6.0.js
https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_1_4.shtml
WeChat official account payment (JSAPI payment process)
Obtain the necessary parameter prepay for initiating payment through the order interface of JSAPI_ ID, then use the front-end JS method provided by WeChat to adjust the official account number.
WeixinJSBridge.invoke( 'getBrandWCPayRequest', { "appId":"wx2421b1c4370ec43b", //The official account number ID is introduced by merchants. "timeStamp":"1395712654", //Timestamp, seconds since 1970 "nonceStr":"e61463f8efa94090b1f366cccfbbb444", //Random string "package":"prepay_id=u802345jgfjsdfgsdg888", "signType":"MD5", //Wechat signature method: "paySign":"70EA570631E4BB79628FBCA90534C63FF7FADD89" //Wechat signature }, function(res){ if(res.err_msg == "get_brand_wcpay_request:ok" ){ // Using the above methods to judge the front-end return, the wechat team solemnly prompts: //res.err_msg will return ok after the user pays successfully, but it is not guaranteed to be absolutely reliable. } });
https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_1_4.shtml
https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_1_1.shtml
Wechat PC payment (Native payment)
Native payment refers to the mode in which the merchant system generates a payment QR code according to the wechat payment agreement, and the user uses wechat to "scan" to complete the payment.
https://pay.weixin.qq.com/wiki/doc/apiv3/open/pay/chapter2_7_0.shtml
Wechat applet
After you successfully obtain the * pre payment transaction session ID (prepay_id) * through the JSAPI, you need to invoke the payment API through the applet to activate the wechat payment cashier
wx.requestPayment({ "timeStamp": "1414561699", "nonceStr": "5K8264ILTKCH16CQ2502SI8ZNMTM67VS", "package": "prepay_id=wx201410272009395522657a690389285100", "signType": "RSA", "paySign": "oR9d8PuhnIc+YZ8cBHFCwfgpaK9gd7vaRvkYD7rthRAZ\/X+QBhcCYL21N7cHCTUxbQ+EAt6Uy+lwSN22f5YZvI45MLko8Pfso0jm46v5hqcVwrk6uddkGuT+Cdvu4WBqDzaDjnNa5UK3GfE1Wfl2gHxIIY5lLdUgWFts17D4WuolLLkiFZV+JSHMvH7eaLdT9N5GBovBwu5yYKUR7skR8Fu+LozcSqQixnlEZUfyE55feLOQTUYzLmR9pNtPbPsu6WVhbNHMS3Ss2+AehHvz+n64GDmXxbX++IOBvm2olHu3PsOUGRwhudhVf7UcGcunXt8cqNjKNqZLhLw4jq\/xDg==", "success":function(res){}, "fail":function(res){}, "complete":function(res){} })
https://pay.weixin.qq.com/wiki/doc/apiv3/open/pay/chapter2_8_2.shtml#3.2.2
Alipay payment
Alipay H5 tune up Alipay APP payment
To facilitate Alipay's payment function in the mobile web application, Alipay provides the mobile phone website's ability to pay.
https://opendocs.alipay.com/open/203/105288
Alipay PC terminal to pay two-dimensional code payment
In order to facilitate the application of Alipay to pay for web applications, Alipay provides the ability to pay for computer websites, and businesses can quickly access Alipay's payment function through open interfaces. The ability of computer websites to upgrade for instant receipt.
https://opendocs.alipay.com/open/270/105898
Flower chant installment payment
Mobile phone flower
To facilitate Alipay's payment function in the mobile web application, Alipay provides the mobile phone website's ability to pay.
https://opendocs.alipay.com/open/203/105288
Computer website flower stage
In order to facilitate the application of Alipay to pay for web applications, Alipay provides the ability to pay for computer websites, and businesses can quickly access Alipay's payment function through open interfaces. The ability of computer websites to upgrade for instant receipt.
https://opendocs.alipay.com/open/270/105899
JD payment
H5 payment is applicable to merchants' H5 online payment. It integrates the function of the cashier at the H5 end of JD payment, and supports a variety of payment tools such as bank card, JD white note, JD small vault, JD wallet balance and so on.
https://www.jdpay.com/home/product/detail/?id=1
Other documents
How to apply for payment number
How to apply for wechat applet payment?
How do I apply for Alipay APP?
How to apply for wechat APP payment by yourself?
How to apply for wechat JSAPI payment?
How to apply for JD payment by yourself?
Existing problems
Click... In wechat to open it with the browser, and the last login status is lost?