mirror of
https://github.com/v2board/v2board.git
synced 2025-01-11 00:29:09 +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');
|
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',
|
'currency' => 'hkd',
|
||||||
'type' => 'alipay',
|
'type' => 'alipay',
|
||||||
'redirect' => [
|
'redirect' => [
|
||||||
'return_url' => url('/api/v1/guest/order/stripeReturn')
|
'return_url' => config('v2board.app_url', env('APP_URL')) . '/#/order'
|
||||||
]
|
]
|
||||||
]);
|
]);
|
||||||
if (!$source['redirect']['url']) {
|
if (!$source['redirect']['url']) {
|
||||||
@ -250,7 +250,7 @@ class OrderController extends Controller
|
|||||||
'currency' => 'hkd',
|
'currency' => 'hkd',
|
||||||
'type' => 'wechat',
|
'type' => 'wechat',
|
||||||
'redirect' => [
|
'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']) {
|
if (!$source['wechat']['qr_code_url']) {
|
||||||
|
@ -113,7 +113,6 @@ Route::prefix('v1')
|
|||||||
// Order
|
// Order
|
||||||
Route::post('order/alipayNotify', 'Guest\\OrderController@alipayNotify');
|
Route::post('order/alipayNotify', 'Guest\\OrderController@alipayNotify');
|
||||||
Route::post('order/stripeNotify', 'Guest\\OrderController@stripeNotify');
|
Route::post('order/stripeNotify', 'Guest\\OrderController@stripeNotify');
|
||||||
Route::get ('order/stripeReturn', 'Guest\\OrderController@stripeReturn');
|
|
||||||
});
|
});
|
||||||
// Client
|
// Client
|
||||||
Route::prefix('client')
|
Route::prefix('client')
|
||||||
|
Loading…
Reference in New Issue
Block a user