浏览器调用支付宝支付,只需要前端这边,提交后台返回的表单即可,并且提供一个支付完成后的回调地址给后台即可,接口那边返回的表单格式一般为:

<form name="punchout_form" method="post" action="https://openapi.alipay.com/gateway.do?charset=UTF-8&method=alipay.trade.wap.pay&sign=O3%2FEBZmcl9tqIp9d7yGRRKhE73WTnfvjCP%2BFR6mjp4e5V%2BlUu2hT%2FrsDxwdXFrLb4JYui8BKFQtj2Bc6%2Bgj4fKDvKHYTt8tYX3F2v7%2B%2FNfezJcZ8cZZTQI75J458j1yt12cPuCfF9Gmao7bThtXtdm1DyWhd%2BJAbiiciXAJyIPZTBvT9xUalGrFfMhZx6IkqFEozNCwDWD38lD2mpNlHA4JtNlM6LRRNAWlxOQMlIT4je%2FaLhj5vxhesk9z%2BqvxWcCHjHxFJcB%2BrVTq1cOKCokD7g6iSMR5zjgwTIE3Mb3tATlEZEwc9I%2FsKOOSlfpQT9EJryhn81HQ22nUcoPg%3D%3D¬ify_url=https%3A%2F%2Fm.91mod.net%2Fchsapi%2Fmember%2Fv2%2Fnotify%2Falipay&version=1.0&app_id=2018090361281228&sign_type=RSA2×tamp=2019-08-02+14%3A59%3A57&alipay_sdk=alipay-sdk-java-3.4.49.ALL&format=json">
<input type="hidden" name="biz_content" value="{"body":"菜划算-订单-1157184241814216704","goods_type":"1","out_trade_no":"1157184241814216704","passback_params":"ip%3D172.16.146.239","product_code":"QUICK_WAP_WAY","quit_url":"http:\/\/m.91mod.net\/chsProject\/index.html#\/paySuccess","subject":"菜划算-订单","timeout_express":"10m","total_amount":"0.99"}">
<input type="submit" value="立即支付" style="display:none" >
</form>
<script>document.forms[0].submit();</script>
Logo

前往低代码交流专区

更多推荐