Skip to content

Commit

Permalink
fix: redirect to lifetime setup page after checkout, instead of subsc…
Browse files Browse the repository at this point in the history
…riber dashboard
  • Loading branch information
aexshafii committed Jan 11, 2025
1 parent b29df75 commit d805022
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/web/app/dashboard/pricing/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export async function createPayOnceOneYearCheckout() {
const { userId } = await auth();
if (!userId) throw new Error("Not authenticated");

const { success, cancel } = getUrls();
const { success, cancel, lifetime } = getUrls();

const session = await stripe.checkout.sessions.create({
mode: "payment",
Expand All @@ -175,7 +175,7 @@ export async function createPayOnceOneYearCheckout() {
quantity: 1,
},
],
success_url: success,
success_url: lifetime,
cancel_url: cancel,
allow_promotion_codes: true,
});
Expand Down

0 comments on commit d805022

Please sign in to comment.