wxpay
wxpay copied to clipboard
记录一下不同点
5种方式
- JSAPI-公众号 统一下单:https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=9_1 调起支付:https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=7_7&index=6
- JSAPI-小程序 统一下单:https://pay.weixin.qq.com/wiki/doc/api/wxa/wxa_api.php?chapter=9_1 调起支付:https://pay.weixin.qq.com/wiki/doc/api/wxa/wxa_api.php?chapter=7_7&index=5
- APP 统一下单:https://pay.weixin.qq.com/wiki/doc/api/app/app.php?chapter=9_1 调起支付:https://pay.weixin.qq.com/wiki/doc/api/app/app.php?chapter=9_12&index=2
- NATIVE 扫码支付 统一下单:https://pay.weixin.qq.com/wiki/doc/api/native.php?chapter=9_1 调起支付:统一下单返回二维码地址链接:code_url
- MWEB 手机H5 统一下单:https://pay.weixin.qq.com/wiki/doc/api/H5.php?chapter=9_20&index=1 调起支付:统一下单返回支付跳转地址链接:mweb_url
注意: JSAPI 时,openid必传 NATIVE 时,product_id必传 spbill_create_ip APP/MWEB/JSAPI 支付提交用户端ip,Native支付填调用微信支付API的机器IP JSAPI,APP 需要 统一下单返回 prepay_id 重新签名生成调起支付参数,各方式参数名不同- -