TLingC's Zone
TLingC's Zone


文章归档

easywechat小程序支付

$this->pay = Factory::payment(Config::get('pay')); $pay_params = [ 'out_trade_no' => $order->out_trade_no, 'total_fee' => $order->pay_amount*100, 'body' => $order->name, 'trade_type' => 'JSAPI', 'openid' => $user->openid ]; $res = $this->pay->order->unify($pay_params); if ($res['return_code'] != 'SUCCESS') { throw new DisplayException("[{$res['return_code']}] {$res['return_msg']}"…

76   2021-08-02