#Darby-availability

1 messages · Page 1 of 1 (latest)

shy charm
wispy sapphire
#

I can't find any docs on this? I know i'm not the only one that doesn't want to oversell. Can you point me in the right direction?

shy charm
#

Which part of the process are you looking for help with? Tracking how much you have sold? Preventing too high of a quantity from being selected in a certain session?

wispy sapphire
#

Well I would like to set it up so that I don't sell if I run out of the quantity. So my thought would be that stripe would see if theres enough to be sold, and if not would error before taking payment. Does that make sense? Is there a webhook that I can set up to that runs before payment process to ensure that its not sold out?

shy charm
#

Unfortunately there is not a webhook for you to check it like that with Checkout. You can of course check your inventory before creating the session and limit the adjustable amount (if you are using adjustable amounts), but unfortunately Checkout doesn't have a way to reach out to your server for your approval on this before making the payment.

#

If you switch to a custom payment flow you can have your page check with your server if there is inventory before trying to confirm the payment

wispy sapphire
#

Is there a way I can set up a timeout on that page? So that dont sit on the checkout for an hour?

shy charm
wispy sapphire
#

Perfect! ty!!!