From eff9a72409e08f780bac7aa1273fbeaa902b8287 Mon Sep 17 00:00:00 2001 From: Andymick Date: Sat, 18 Jul 2026 06:59:59 +0100 Subject: [PATCH] Improve debug logging for checkout flow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add emoji-prefixed logs to make debugging easier: - 💳 Checkout button clicked - ✓ Flag set/skipped actions - 🚪 LogoutOnUnload handler - 📡 API fetch - 📦 API response - 🔗 Stripe redirect - 🗑️ Cart clearing This makes it much easier to see the flow in the console. Co-Authored-By: Claude Haiku 4.5 --- src/app/checkout/client.tsx | 8 +++++--- src/components/LogoutOnUnload.tsx | 7 ++++--- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/app/checkout/client.tsx b/src/app/checkout/client.tsx index f3727cb..d63ca1f 100644 --- a/src/app/checkout/client.tsx +++ b/src/app/checkout/client.tsx @@ -122,29 +122,31 @@ export default function CheckoutPageClient({ isLoggedIn, customer }: CheckoutPag

Logged in as {customer?.email}