#xandert.93

1 messages · Page 1 of 1 (latest)

crisp lintelBOT
coarse epoch
#

Anyone there?

pliant rune
#

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?

coarse epoch
#

On Stripe's API

pliant rune
#

Yeah, but what API endpoint are you using to check stock?

#

What fields on which objects?

coarse epoch
#

I'm actually not sure!

#

When we create a product on Stripe

#

Is it possible to provide it with a stock count?

verbal marten
#

No, that's not supported natively by Checkout

coarse epoch
#

Oh okay

verbal marten
#

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

coarse epoch
#

Oh okay so basically record the stock count on my own database right?

verbal marten
#

Correct -- and either reserve beforehand or check before capture, or both

coarse epoch
#

Okay thanks! 🙂

verbal marten
#

NP!