mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 09:39:10 +08:00
update
This commit is contained in:
parent
f630504fe9
commit
b7f37bbe63
@ -101,9 +101,4 @@ class OrderController extends Controller
|
||||
abort(500, 'event is not support');
|
||||
}
|
||||
}
|
||||
|
||||
public function stripeReturn (Request $request) {
|
||||
Log::info('stripeReturnData: ' . json_encode($request->input()));
|
||||
header('Location:' . config('v2board.app_url', env('APP_URL')) . '/#/dashboard');
|
||||
}
|
||||
}
|
||||
|
@ -225,7 +225,7 @@ class OrderController extends Controller
|
||||
'currency' => 'hkd',
|
||||
'type' => 'alipay',
|
||||
'redirect' => [
|
||||
'return_url' => url('/api/v1/guest/order/stripeReturn')
|
||||
'return_url' => config('v2board.app_url', env('APP_URL')) . '/#/order'
|
||||
]
|
||||
]);
|
||||
if (!$source['redirect']['url']) {
|
||||
@ -250,7 +250,7 @@ class OrderController extends Controller
|
||||
'currency' => 'hkd',
|
||||
'type' => 'wechat',
|
||||
'redirect' => [
|
||||
'return_url' => url('/api/v1/guest/order/stripeReturn')
|
||||
'return_url' => config('v2board.app_url', env('APP_URL')) . '/#/order'
|
||||
]
|
||||
]);
|
||||
if (!$source['wechat']['qr_code_url']) {
|
||||
|
@ -113,7 +113,6 @@ Route::prefix('v1')
|
||||
// Order
|
||||
Route::post('order/alipayNotify', 'Guest\\OrderController@alipayNotify');
|
||||
Route::post('order/stripeNotify', 'Guest\\OrderController@stripeNotify');
|
||||
Route::get ('order/stripeReturn', 'Guest\\OrderController@stripeReturn');
|
||||
});
|
||||
// Client
|
||||
Route::prefix('client')
|
||||
|
Loading…
Reference in New Issue
Block a user