Skip to content

Commit

Permalink
Revert "Update Stripe success URL to redirect to dashboard after paym…
Browse files Browse the repository at this point in the history
…ent completion"

This reverts commit f1b351d.
  • Loading branch information
BrunoSette committed Dec 14, 2024
1 parent 831a542 commit b58660d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/payments/stripe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export async function createSubscriptionCheckoutSession({
},
],
mode: "payment",
success_url: `${baseUrl}/dashboard?success=true`,
success_url: `${baseUrl}/api/stripe/checkout?session_id={CHECKOUT_SESSION_ID}`,
cancel_url: `${baseUrl}/pricing`,
customer: team.stripeCustomerId || undefined,
client_reference_id: user.id.toString(),
Expand Down Expand Up @@ -84,7 +84,7 @@ export async function createProductCheckoutSession({
},
],
mode: "payment",
success_url: `${baseUrl}/dashboard?success=true`,
success_url: `${baseUrl}/api/stripe/checkout?session_id={CHECKOUT_SESSION_ID}`,
cancel_url: `${baseUrl}/pricing`,
customer: team.stripeCustomerId || undefined,
client_reference_id: user.id.toString(),
Expand Down

0 comments on commit b58660d

Please sign in to comment.