#sargam-checkout-inventory

1 messages · Page 1 of 1 (latest)

sand sequoiaBOT
shy edge
#

sargam-checkout-inventory

#

@pure creek sorry, completely missed your thread

#

We don't really have an "inventory" feature on Checkout unfortunately so it's something only you can control right now. When you create the Session you need to decide if you want to take the "inventory" from it even though the customer might never pay for it

#

There isn't a really simple solution to design this just yet as there's no "callback to check if there's an inventory"

#

One other potential solution is that every time someone pays you "decrease" the count and then when you reach zero you can go and call the Expire Checkout Session API https://stripe.com/docs/api/checkout/sessions/expire which would prevent those customers from paying

pure creek
#

thanks for the help, i think calling expire cechkout session api can help with concurrency