#haroon_checkout-session-recovery
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/1364998051051208735
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi ๐
I"m sorry but your question does not make sense to me. Is your question why Stripe is creating a second Customer object when a Customer with the same email makes a purchase? Or are you asking how you can allow your customers to change the quantity for a line item in a Checkout Session?
I'm looking for an alternative with payment expiry time of 7 days that offers same experience as stripe checkout session. I just want to capture payment without managing other stuff
Okay so your question is about how to use Checkout Sessions with a longer expiration time?
Previously, I was using stripe checkout with 24 hours expiry but now my use case had changed and stripe checkout doesn't support sessions with 7 days expiry
No we don't. This is something you would need to implement in your integration. But I can recommend an approach for this.
yes please
Here is how I would solve it.
A Customer comes to my site and, after picking some items, generates a Checkout Session that they are redirected to. When a Customer comes to my site , I use the List API to check for any recent expired sessions and retrieve the line_items. Then I create a new Session with those line items and redirect the Customer to that URL.
Yeah, but the use case is that I will send a payment link in an email to the user and will ask him to pay within 7 days. So, I can't change link after sharing it.