#haroon_checkout-session-recovery

1 messages ยท Page 1 of 1 (latest)

lavish rockBOT
#

๐Ÿ‘‹ 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.

empty fiber
#

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?

versed comet
#

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

empty fiber
#

Okay so your question is about how to use Checkout Sessions with a longer expiration time?

versed comet
#

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

empty fiber
#

No we don't. This is something you would need to implement in your integration. But I can recommend an approach for this.

versed comet
#

yes please

empty fiber
#

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.

versed comet
#

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.

empty fiber
#

Ah, then there is no way around that.

What you can do is configure the after_expiration parameter to generate a recovery_url to allow customers to recover their expired Checkout Sessions. We document this here and here