$attributes= [
"body" => "充值1.00元" ,
"detail" => "充值1.00元",
"total_fee" => 100,
"out_trade_no" => "trading_831",
"notify_url" => "http://100huatong.local/api/weixin/notify"
];
$order = new Order($attributes);
$weChat = app('wechat');
$payment = $weChat->payment;
return $payment->pay($order);
不知道这样对不对。
输出结果
{"return_code":"FAIL","return_msg":"缺少参数"}<br></br>