Browse Source

测试数据,支付金额0.01

develop
李可松 4 years ago
parent
commit
d26aeeef92
  1. 2
      app/Http/Controllers/Api/OrderController.php

2
app/Http/Controllers/Api/OrderController.php

@ -318,7 +318,7 @@ class OrderController extends Controller
$result = $app->order->unify([ $result = $app->order->unify([
'body' => $order->title, 'body' => $order->title,
'out_trade_no' => $order->order_no . '-' . $order->status, //后面加status,主要是为了方便微信支付回调时区分定金(首付款)和尾款支付 'out_trade_no' => $order->order_no . '-' . $order->status, //后面加status,主要是为了方便微信支付回调时区分定金(首付款)和尾款支付
'total_fee' => round($price * 100), //支付金额单位为分
'total_fee' => 0.01, //TODO 测试暂时注释 round($price * 100), //支付金额单位为分
'notify_url' => route('wxpay_notify', ['agent_id' => $this->agent_id]), // 支付结果通知网址,如果不设置则会使用配置里的默认地址 'notify_url' => route('wxpay_notify', ['agent_id' => $this->agent_id]), // 支付结果通知网址,如果不设置则会使用配置里的默认地址
'trade_type' => 'JSAPI', 'trade_type' => 'JSAPI',
'openid' => $openid, 'openid' => $openid,

Loading…
Cancel
Save