#tommyangelo_docs
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/1222757768419741716
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
https://docs.stripe.com/payments/checkout/managing-limited-inventory this guide is specific for checkout. If you are using paymentIntent + paymentElement integration. You should listen to payment_intent related events such as payment_intent.succeeded, payment_intent_failed
Thanks for replying! I thought so too, but from what I could tell; there's no way to "expire" a payment intent
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.
Should I then just start my own background timer for each paymentIntent to make inventory available again (after, let's say 15mins)?
You can do it. Just curious, why don't you use checkout session instead?
I suppose I didn't want to redirect to a 3rd party page ๐ But it does seem like all the extra trouble isn't worth it at all
so I 100% agree with what you're saying ๐ฏ
https://docs.stripe.com/checkout/embedded/quickstart you can also embed checkout to your page
OMG how did I miss that ๐คฆโโ๏ธ๐คฆโโ๏ธ๐คฆโโ๏ธ
thank you so very much!
Happy to help!
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
Yes you are right