mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 17:31:49 +08:00 
			
		
		
		
	Stripe invoice description
This commit is contained in:
		| @@ -71,6 +71,7 @@ class OrderController extends Controller | |||||||
|                     'amount' => $source['amount'], |                     'amount' => $source['amount'], | ||||||
|                     'currency' => $source['currency'], |                     'currency' => $source['currency'], | ||||||
|                     'source' => $source['id'], |                     'source' => $source['id'], | ||||||
|  |                     'description' => config('v2board.app_name', 'V2Board') . $source['metadata']['invoice_id'], | ||||||
|                 ]); |                 ]); | ||||||
|                 if ($charge['status'] == 'succeeded') { |                 if ($charge['status'] == 'succeeded') { | ||||||
|                     $trade_no = Cache::get($source['id']); |                     $trade_no = Cache::get($source['id']); | ||||||
|   | |||||||
| @@ -416,6 +416,12 @@ class OrderController extends Controller | |||||||
|             'amount' => floor($order->total_amount * $exchange), |             'amount' => floor($order->total_amount * $exchange), | ||||||
|             'currency' => $currency, |             'currency' => $currency, | ||||||
|             'type' => 'alipay', |             'type' => 'alipay', | ||||||
|  |             'statement_descriptor' => $order->trade_no, | ||||||
|  |             'metadata' => [ | ||||||
|  |                 'user_id' => $order->user_id, | ||||||
|  |                 'invoice_id' => $order->trade_no, | ||||||
|  |                 'identifier' => '' | ||||||
|  |             ], | ||||||
|             'redirect' => [ |             'redirect' => [ | ||||||
|                 'return_url' => config('v2board.app_url', env('APP_URL')) . '/#/order' |                 'return_url' => config('v2board.app_url', env('APP_URL')) . '/#/order' | ||||||
|             ] |             ] | ||||||
| @@ -442,6 +448,11 @@ class OrderController extends Controller | |||||||
|             'amount' => floor($order->total_amount * $exchange), |             'amount' => floor($order->total_amount * $exchange), | ||||||
|             'currency' => $currency, |             'currency' => $currency, | ||||||
|             'type' => 'wechat', |             'type' => 'wechat', | ||||||
|  |             'metadata' => [ | ||||||
|  |                 'user_id' => $order->user_id, | ||||||
|  |                 'invoice_id' => $order->trade_no, | ||||||
|  |                 'identifier' => '' | ||||||
|  |             ],             | ||||||
|             'redirect' => [ |             'redirect' => [ | ||||||
|                 'return_url' => config('v2board.app_url', env('APP_URL')) . '/#/order' |                 'return_url' => config('v2board.app_url', env('APP_URL')) . '/#/order' | ||||||
|             ] |             ] | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user