minor bug fixed
This commit is contained in:
parent
18b0271462
commit
985687ca89
|
@ -22,3 +22,4 @@ STRIPE_SECRET_KEY=
|
|||
PRICE_ID=
|
||||
TRIAL_PERIOD_DAYS=
|
||||
NEXT_PUBLIC_STRIPE_BILLING_PORTAL_URL=
|
||||
BASE_URL=http://localhost:3000
|
|
@ -28,8 +28,8 @@ export default async function paymentCheckout(
|
|||
],
|
||||
mode: "subscription",
|
||||
customer_email: isExistingCostomer ? undefined : email.toLowerCase(),
|
||||
success_url: "http://localhost:3000?session_id={CHECKOUT_SESSION_ID}",
|
||||
cancel_url: "http://localhost:3000/login",
|
||||
success_url: `${process.env.BASE_URL}?session_id={CHECKOUT_SESSION_ID}`,
|
||||
cancel_url: `${process.env.BASE_URL}/login`,
|
||||
automatic_tax: {
|
||||
enabled: true,
|
||||
},
|
||||
|
|
|
@ -21,6 +21,7 @@ declare global {
|
|||
PRICE_ID?: string;
|
||||
NEXT_PUBLIC_STRIPE_BILLING_PORTAL_URL?: string;
|
||||
TRIAL_PERIOD_DAYS?: string;
|
||||
BASE_URL?: string;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Ŝarĝante…
Reference in New Issue