diff --git a/FRONTEND/src/components/ui/Navbar.jsx b/FRONTEND/src/components/ui/Navbar.jsx index a4b1692..fcfda03 100644 --- a/FRONTEND/src/components/ui/Navbar.jsx +++ b/FRONTEND/src/components/ui/Navbar.jsx @@ -88,9 +88,8 @@ const Navbar = () => { }); return; } - emptyCart(); onClose(); - navigate("/success"); + window.location.href = data.url; } catch (err) { console.error("Checkout failed:", err);