3
0
Fork 0
java-store-retail-app/文档/支付/宝付/小程序支付.txt

16 lines
1.0 KiB
Plaintext
Raw Normal View History

2025-03-23 09:44:16 +08:00
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要宝付客服进行绑定才能使用