#louis-fortunier_best-practices
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฑ๏ธ We automatically close idle threads, which makes them read-only. Make sure you stick around to chat in realtime!
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1212062715405795429
๐ Have more to share? You can add more detail below, including code, screenshots, videos, etc.
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question. Thank you for your patience!
Hi ๐ yes, you can configure restrictions.completed_sessions.limit to restrict the number of checkout sessions that can be completed by a Payment Link:
https://docs.stripe.com/api/payment_links/payment_links/create#create_payment_link-restrictions
But, if you're only intending to process one payment per link, I'd recommend creating a Checkout Session directly rather than a Payment Link.
ok thank you, what is the difference between the 2 ?
Payment Links are more one-size-fits-all links. They're typically meant for multiple people to use to purchase the same thing. Every time the Payment Link is accessed, it creates a Checkout Session that is used to process a payment.
Whereas Checkout Sessions are designed to be single use, and can be customer-specific.
I'll look at that, thanks for the answers and have a nice day