#dhruv_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ 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.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ 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/1457829014487044383
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello
I'm not sure I fully grasp your question. When you say an Invoice, are you referring to a Stripe invoice or something else?
I don't believe there's a way to extend expiry of a Checkout Session. You could use Payment Links instead.
Payment Links create Checkout Sessions automatically when someone loads the PaymentLinks URL
Ohk, can I pass product and price Id in that just like checkout session?
The PaymentLink needs to be created for a specific price/product. You can't customize them inline.
Please refer to: https://docs.stripe.com/payment-links/create
I don't see any option to pass Success/Return URL in payment link
I want the user to be redirected to a custom page after payment is successful
Gotcha. In that case, you'd need to create your own custom solution that generates Checkout Sessions on the fly.
For example, if https://example.com is the URL that you put in an invoice then you'd need to make an API call to Stripe when a user lands on that URL to create a Checkout Session
I see and is there any option to pass Success URL in Stripe Invoice?
I can pass Due date in Invoice, but no URL
No, there's no way to set a success URL
Ohk
One last question. Let's say I share one checkout session Link with the customer, is it possible that if the link is not active anymore that they can go to a different page or anyway to generate the same checkout session again?
You can configure recovery - https://docs.stripe.com/payments/checkout/abandoned-carts
Perfect, I think this will work. Thanks for your help.