#OneLap
1 messages · Page 1 of 1 (latest)
Creating a checkout in setup mode creates a setupintent (not a paymentintent). So there will be no payment intent id. It will generate a payment method id. However, a customer won't be generated automatically I don't think. You'll need to pass the following to ensure a customer is always created: https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-customer_creation
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Can the "setup intentent" that is returned be used more than once?
We are a Property Management System so when a guest books we need to save their card details then be able to run a charge against the card upon checkin and also at checkout if they have charged incidentals (like mini bar charges or room damages)
Is this the correct way to accomplish this type of charge?
Yep that's exactly what a setupintent is for
Awesome I will give it a shot. Thanks.