//https://myjsapi.alipay.com/alipayjsapi/util/pay/tradePay.html
// 支付宝订单字符串唤起支付 <script src="https://gw.alipayobjects.com/as/g/h5-lib/alipayjsapi/3.1.1/alipayjsapi.inc.min.js"></script> <button id="J_btn" class="btn btn-default">支付</button> <script> var btn = document.querySelector('#J_btn'); btn.addEventListener('click', function(){ ap.tradePay({ orderStr: 'timestamp=2016-12-27%2018%3A00%3A00&method=alipay.trade.app.pay&app_id=2014073000007292......' }, function(res){ ap.alert(res.resultCode); }); }); </script>
bestPaySdk 我看文档上说支持支付宝h5支付,怎么使用呢,看了下源码里的
ALIPAY_APP("alipay_app", ALIPAY, "支付宝app"), ALIPAY_PC("alipay_pc", ALIPAY, "支付宝pc"), ALIPAY_WAP("alipay_wap", ALIPAY, "支付宝wap"), WXPAY_MP("JSAPI", WX,"微信公众账号支付"), WXPAY_MWEB("MWEB", WX, "微信H5支付"), WXPAY_NATIVE("NATIVE", WX, "微信Native支付"), WXPAY_MINI("JSAPI", WX, "微信小程序支付"), WXPAY_APP("APP", WX, "微信APP支付"),
还是这几个