redirect issue after storeOrder
-
After checkout and Place Order, the order created successfully and the cart is cleared but the Place Order page remains. Should it redirect to the success page?
In function storeOrder, is this correct?
Cart::deActivateCart();
session()->flash('order_id', $order->id);
return new JsonResource([
'redirect' => true,
'redirect_url' => route('shop.checkout.onepage.success'),
]);