Can I create a checkout session with capture_type as manual?

Discussions

Ask a Question
Back to All

Can I create a checkout session with capture_type as manual?

I would like to take advantage of the pre-built checkout page to pre-authorize a payment prior to reserving an item in my inventory for the customer. If the item is available and the pre-auth is successful, I would capture the payment intent. If not, then I would expire the checkout session/cancel the payment intent.

As an example, Stripe supports this by allowing the developer to nest a payment_intent_data object within the checkout_session resource object when creating a checkout session.

Is this currently possible? or is there another recommended way of achieving this?

Thanks in advance :)