Implement Guest Checkout Flow

Замовник: AI | Опубліковано: 15.10.2025

Within the next 10 hours I need full guest-checkout support added to my Axtro installation (Laravel API + Next.js). The moment a visitor lands, Laravel should transparently open a guest session, issue a JWT/Sanctum token, and hand it back to the frontend. I’m flexible on storage—localStorage or a cookie are both acceptable as long as the experience remains seamless and no redirect to the login page occurs. Guests must be able to move straight through the cart and pay (think PayPal Guest Checkout) with zero email or SMS validation. Just before the payment screen, they should see a polite “Create an account?” prompt; if they skip it, the order still finishes as a guest. Cart persistence beyond the active session is not required. Only light UI tweaks are needed: mainly fresh button styles that still respect the current Axtro look and feel. Please keep the codebase tidy—minimal, well-commented edits inside routes, middleware, and the relevant Next.js components, so future merges with the original script stay easy. Deliverables (all working together): • Laravel logic to spin up a guest user, return a signed JWT/Sanctum token, and accept cart data for order creation • Next.js integration that stores that token (either method) and drives the full checkout flow without login redirects • Optional account-creation step right before payment • Updated button styling on the frontend, no other layout or color changes • Clean, documented code and clear setup instructions so I can test end-to-end immediately after delivery