1.先去支付宝开放平台下载PHPSDK public function payDo(){ echo "<form id=alipayment action='/plugins/alipay/pagepay/pagepay.php' method=post target='_blank'> <input id='WIDout_trade_no' name='WIDout_trade_no' value='订单号'/> <input id='WIDsubject' name='WIDsubject' value='订单名称'/> <input id='WIDtotal_amount' name='WIDtotal_amount' value='价格'/> <input id='WIDbody' name='WIDbody' /> </form><script>document.getElementById('alipayment').submit()</script>"; }
tp5个人使用支付宝完成支付
最新推荐文章于 2024-06-01 16:52:00 发布