From d71ab61760ee6db39b532c4c9489f50a07dfe481 Mon Sep 17 00:00:00 2001 From: bflatastic Date: Thu, 5 Feb 2026 23:31:33 +0700 Subject: [PATCH] already logged in subscription update --- .../src/components/pricing-table/pricing-table.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/apps/artcraft-website/src/components/pricing-table/pricing-table.tsx b/frontend/apps/artcraft-website/src/components/pricing-table/pricing-table.tsx index 5f3b85f285..86e1b205dd 100644 --- a/frontend/apps/artcraft-website/src/components/pricing-table/pricing-table.tsx +++ b/frontend/apps/artcraft-website/src/components/pricing-table/pricing-table.tsx @@ -194,7 +194,8 @@ const PricingTable = ({ return; } - // Logged in - determine if we need checkout (new subscription) or portal (switch plan) + // Logged in - user already has an account + // We use the normal subscription APIs here, not the signup one const hasActiveSub = activePlanSlug && activePlanSlug !== "free"; const billingApi = new BillingApi(); @@ -214,7 +215,8 @@ const PricingTable = ({ // Redirect to Stripe Portal window.location.href = response.data.stripePortalUrl; } else { - // User logged in but no active subscription - checkout + // User logged in but no active subscription - use normal subscription checkout + // This attaches the subscription to the existing account const response = await billingApi.SubscriptionCheckout({ plan: apiPlanSlug, cadence: cadence,