From 49d65b87cdab3729eef6de94a1b5406ff3d354fb Mon Sep 17 00:00:00 2001 From: isra el Date: Sat, 12 Jul 2025 20:56:19 +0300 Subject: [PATCH] fix(api): fix redirect url after checkout --- api/src/billing/billing.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/billing/billing.service.ts b/api/src/billing/billing.service.ts index ac2c45b..71e1642 100644 --- a/api/src/billing/billing.service.ts +++ b/api/src/billing/billing.service.ts @@ -138,8 +138,8 @@ export class BillingService { selectedPlan.polarMonthlyProductId, selectedPlan.polarYearlyProductId, ], - successUrl: `${process.env.FRONTEND_URL}/dashboard?checkout-success=1&checkout_id={CHECKOUT_ID}`, - cancelUrl: `${process.env.FRONTEND_URL}/dashboard?checkout-cancel=1&checkout_id={CHECKOUT_ID}`, + successUrl: `${process.env.FRONTEND_URL}/dashboard/account?checkout-success=1&checkout_id={CHECKOUT_ID}`, + cancelUrl: `${process.env.FRONTEND_URL}/dashboard/account?checkout-cancel=1&checkout_id={CHECKOUT_ID}`, customerEmail: user.email, customerName: user.name, customerIpAddress: req.ip,