|
@@ -416,6 +416,12 @@ class OrderController extends Controller
|
|
|
'amount' => floor($order->total_amount * $exchange),
|
|
|
'currency' => $currency,
|
|
|
'type' => 'alipay',
|
|
|
+ 'statement_descriptor' => $order->trade_no,
|
|
|
+ 'metadata' => [
|
|
|
+ 'user_id' => $order->user_id,
|
|
|
+ 'invoice_id' => $order->trade_no,
|
|
|
+ 'identifier' => ''
|
|
|
+ ],
|
|
|
'redirect' => [
|
|
|
'return_url' => config('v2board.app_url', env('APP_URL')) . '/#/order'
|
|
|
]
|
|
@@ -442,6 +448,11 @@ class OrderController extends Controller
|
|
|
'amount' => floor($order->total_amount * $exchange),
|
|
|
'currency' => $currency,
|
|
|
'type' => 'wechat',
|
|
|
+ 'metadata' => [
|
|
|
+ 'user_id' => $order->user_id,
|
|
|
+ 'invoice_id' => $order->trade_no,
|
|
|
+ 'identifier' => ''
|
|
|
+ ],
|
|
|
'redirect' => [
|
|
|
'return_url' => config('v2board.app_url', env('APP_URL')) . '/#/order'
|
|
|
]
|