|
|
|
@ -74,7 +74,7 @@ class SharePayController extends Controller |
|
|
|
$app = Factory::payment($config); |
|
|
|
try { |
|
|
|
$result = $app->order->unify([ |
|
|
|
'body' => mb_substr($order->title, 0, 127), |
|
|
|
'body' => mb_strcut($order->title, 0, 127), |
|
|
|
'out_trade_no' => $order->order_no . '-' . $order->status, //后面加status,主要是为了方便微信支付回调时区分定金(首付款)和尾款支付
|
|
|
|
'total_fee' => round($price * 100), //支付金额单位为分
|
|
|
|
'notify_url' => route('wxpay_notify', ['agent_id' => $this->agent_id]), // 支付结果通知网址,如果不设置则会使用配置里的默认地址
|
|
|
|
|