java-retail-app/文档/支付/宝付/小程序支付.txt

16 lines
1.0 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

app调小程序——小程序先获取openid——小程序再调用下单接口然后小程序调起支付下单就是交易预创建接口接口会返回唤醒收银台需要的参数然后通过js唤醒收银台支付。
1、app调小程序
微信参考https://developers.weixin.qq.com/doc/oplatform/Mobile_App/Launching_a_Mini_Program/Android_Development_example.html
支付宝参考https://openclub.alipay.com/support/helpcenter/142/201602475172
2、小程序获取openid
微信参考https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=4_4
支付宝参考https://opendocs.alipay.com/open/284/h5
3、小程序调用宝付下单接口下单就是交易预创建接口接口会返回唤醒收银台需要的参数然后通过js唤醒收银台支付。
4、调起支付
微信参考https://pay.weixin.qq.com/wiki/doc/api/wxa/wxa_sl_api.php?chapter=7_7&index=5
支付宝参考https://myjsapi.alipay.com/jsapi/native/trade-pay.html
注:
小程序的APPID要宝付客服进行绑定才能使用