From c898849ef419e4d69fac964fa2468323adfae2f7 Mon Sep 17 00:00:00 2001 From: isra el Date: Sat, 15 Feb 2025 16:26:54 +0300 Subject: [PATCH] chore(api): update checkout success and cancel urls --- 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 e81836b..91ce65d 100644 --- a/api/src/billing/billing.service.ts +++ b/api/src/billing/billing.service.ts @@ -119,8 +119,8 @@ export class BillingService { // productPriceId: isYearly // ? selectedPlan.yearlyPolarProductId // : selectedPlan.monthlyPolarProductId, - successUrl: `${process.env.FRONTEND_URL}/checkout-success?checkout_id={CHECKOUT_ID}`, - cancelUrl: `${process.env.FRONTEND_URL}/checkout-cancel?checkout_id={CHECKOUT_ID}`, + 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}`, customerEmail: user.email, customerName: user.name, customerIpAddress: req.ip,