支付宝支付
配置相关的参数 配置相关的参数 //商户订单号,商户网站订单系统中唯一订单号,必填 $out_trade_no = $appalipay['order_sn']; //订单名称,必填 $subject = $appalipay['subject']; //付款金额,必填 $total_amount = $appalipay['account']; //商品描述,可空 $body = ''; 引入相关的支付宝配置文档,调用指定的方法 Loader::import('pagepay.buildermodel.AlipayTradePagePayContentBuilder'); $payRequestBuilder = new \AlipayTradePagePayContentBuilder(); $payRequestBuilder->setBody($body); $payRequestBuilder->setSubject($subject); $payRequestBuilder->setTotalAmount($total_amount); $payRequestBuilder->setOutTradeNo($out_trade_no); Loader::import('pagepay.service.AlipayTradeService'); $payment=