如题,请教 一下 【H5应用】里怎样拉起【支付宝App】进行支付啊?
微信支付是 设置 window.location.href = targetUrl 就可以了;
好像支付宝支付得【增加】一个H5页面吧?
因为返回的数据是:
"<form name="punchout_form" method="post" action="https://openapi.alipay.com/gateway.do?charset=utf-8&method=alipay.trade.wap.pay&sign=MKj%2BWyIxtqE91LJDfvjiK2bFNR1LWJSycvZ5yxf8uogF3xt2prXLaiDvOlhEptItzS0sGqWMgeL3zq5mZjawNkxBP%2B%2Ff2AsJ61GCXNFG5jrMyZQSoWEijD2gXE1UvEdHvbJG%2BEN1SYWGESxU4v7UjEkW1YG9vEB%2BuhD7zIIHb8kuzbsk3NQdzX7MVPEImM3SN873r5Zm6wGuhGSI%2FCt%2F%2BYSPgC8vHMuhaR3a%2FHWr7%2Fg%3D%3D&return_url=http%3A%2F%2Fhtzsbpay.xiaodouyouxue.com%2Fh5zsbsaler%2F%23%2Fpages%2F6-PayResult%2FPayResult¬ify_url=http%3A%2F%2Fhtzsbpay.xiao.com%2Fprod-api%2Fzsb.pay%2Falipay%2FpayCallBack&version=1.0&app_id=2021001192685975&sign_type=RSA2×tamp=2022-06-21+13%3A51%3A40&alipay_sdk=alipay-sdk-java-4.9.5.ALL&format=json">
<input type="hidden" name="biz_content" value="{"body":"课程套餐支付","out_trade_no":"11655790696131_843371","product_code":"QUICK_WAP_WAY","subject":"课程套餐支付","timeout_express":"3m","total_amount":"29800"}">
<input type="submit" value="立即支付" style="display:none" >
</form>
<script>document.forms[0].submit();</script>"
0 个回复