#dino_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/1215530978466856992
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
My question is poorly phrased, but I don't know how to explain myself, if do you have any questions let me know 
I did came up with a workaround by using stripe card element, where I can do my custom code handling before confirming a card payment, but I would like to use a checkout session instead
hello! Can you give an example of what you want to check for?
As you see, I'm issung an API call to /canusercomplete just before attempting the intent
I want to avoid a race condition of both users buying the same thing on my website
Checkout Sessions doesn't allow you to do that. If you want to perform some validation before creating a payment, you'll want to use a custom flow instead. I recommend taking a look at https://stripe.com/docs/payments/accept-a-payment-deferred
Alright, thanks!