This commit is contained in:
root 2019-12-21 00:01:11 +08:00
parent f630504fe9
commit b7f37bbe63
3 changed files with 2 additions and 8 deletions

View File

@ -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');
}
}

View File

@ -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']) {

View File

@ -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')