refactor(checkout): keep source cart active
This commit is contained in:
@@ -100,7 +100,7 @@ class CompleteCheckoutService
|
||||
return;
|
||||
}
|
||||
|
||||
if ($cart === null || $cart->status !== 'checkout') {
|
||||
if ($cart === null || ! in_array($cart->status, ['active', 'checkout'], true)) {
|
||||
throw ValidationException::withMessages([
|
||||
'items' => __('api.purchase.inconsistent_reservation'),
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user