Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitamalinov committed Apr 2, 2024
1 parent 8b1189f commit 2905374
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/stripe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ export const createCheckoutSession = async ({
const checkoutSession = await stripe.checkout.sessions.create({
line_items,
mode: "subscription", // "subscription" or "payment" or "setup"
success_url: `${process.env.NEXT_PUBLIC_SITE_URL}/success=true`,
cancel_url: `${process.env.NEXT_PUBLIC_SITE_URL}/success=false`,
success_url: `${process.env.NEXT_PUBLIC_SITE_URL}?success=true`,
cancel_url: `${process.env.NEXT_PUBLIC_SITE_URL}?success=false`,
client_reference_id: customerId,
currency: "usd",
metadata: metadata,
Expand Down

0 comments on commit 2905374

Please sign in to comment.