#xandert.93
1 messages · Page 1 of 1 (latest)
Anyone there?
Apologies for the wait. The server is very busy and I'm juggling many threads.
When you say "check if there is enough stock", what do you mean? Where are you checking the stock?
On Stripe's API
Yeah, but what API endpoint are you using to check stock?
What fields on which objects?
I'm actually not sure!
When we create a product on Stripe
Is it possible to provide it with a stock count?
No, that's not supported natively by Checkout
Oh okay
You'd need to implement this yourself by eg reserving stock prior to sending a customer to checkout, then releasing after some time, or by using manual capture for payment methods that support it, and checking stock prior to capturing the payment
Oh okay so basically record the stock count on my own database right?
Correct -- and either reserve beforehand or check before capture, or both
Okay thanks! 🙂
NP!