update
This commit is contained in:
@@ -68,13 +68,18 @@ class Wechat
|
||||
*/
|
||||
public function payment(): string
|
||||
{
|
||||
$notifyUrl = Route::buildUrl('wechat/paid')
|
||||
->suffix(false)
|
||||
->domain(true);
|
||||
|
||||
|
||||
$config = Config::get('wechat.payment');
|
||||
$payment = Factory::payment($config);
|
||||
$unify = $payment->order->unify([
|
||||
'body' => '商品订单',
|
||||
'out_trade_no' => time(),
|
||||
'total_fee' => 100,
|
||||
'notify_url' => '',
|
||||
'notify_url' => $notifyUrl,
|
||||
'trade_type' => 'JSAPI',
|
||||
'openid' => '$openid',
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user