Skip to content

Commit a1d2d7a

Browse files
committed
Moved config
1 parent 63b97bf commit a1d2d7a

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

config/rapidez/frontend.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,7 @@
9292
'auto_select_configurable_options' => false,
9393
'auto_select_product_options' => false,
9494
],
95+
96+
// The path to redirect to after a failed checkout
97+
'checkout_success_fail_redirect_path' => 'cart',
9598
];

config/rapidez/system.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,5 @@
3131
'standalone_checkout' => [
3232
// What cache store should be used to store temporary standalone checkout credentials
3333
'cache_store' => env('STANDALONE_CHECKOUT_CACHE_STORE', config('cache.default')),
34-
'success_fail_redirect_path' => 'cart',
3534
],
3635
];

src/Http/Controllers/CheckoutSuccessController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public function __invoke(Request $request)
1313
$success = Eventy::filter('checkout.checksuccess', true, $request);
1414

1515
if (! $success) {
16-
return redirect(config('rapidez.standalone_checkout.success_fail_redirect_path', 'cart'));
16+
return redirect(config('rapidez.frontend.checkout_success_fail_redirect_path', 'cart'));
1717
}
1818

1919
if (is_object($success) && $success instanceof \Symfony\Component\HttpFoundation\Response) {

0 commit comments

Comments
 (0)