#tommyangelo_docs

1 messages ยท Page 1 of 1 (latest)

severe lilyBOT
#

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

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

hearty spindleBOT
copper mountain
fallen heath
#

Thanks for replying! I thought so too, but from what I could tell; there's no way to "expire" a payment intent

copper mountain
#

And since PaymentIntent doesn't carrry price/product info, you might want to attach them in PaymentIntent's metadata.

#

No, there's no expiration for PaymentIntent.

fallen heath
#

Should I then just start my own background timer for each paymentIntent to make inventory available again (after, let's say 15mins)?

copper mountain
#

You can do it. Just curious, why don't you use checkout session instead?

fallen heath
#

so I 100% agree with what you're saying ๐Ÿ’ฏ

copper mountain
fallen heath
#

OMG how did I miss that ๐Ÿคฆโ€โ™‚๏ธ๐Ÿคฆโ€โ™‚๏ธ๐Ÿคฆโ€โ™‚๏ธ

#

thank you so very much!

copper mountain
#

Happy to help!

fallen heath
#

so, with this approach, I'll just reserve the items in the checkout endpoint (that's what I think it's called)

#

and then listen to the session.expired event and make them available to others again, as per guide

copper mountain
#

Yes you are right