#wellgordon-stripe-checkout
1 messages · Page 1 of 1 (latest)
Hi there! Can you clarify what you mean here? You are asking whether we offer a pre-built Checkout page? Or whether you can collect card details without charging them? Or?
Sorry for any confusion! We are creating a customer and then calling the api to create a checkout session, but customer payment info is not automatically saved to the customer for re-use. Is there any way to do this through a checkout session, or only through a payment intent?
Ah thank you for clarifying! You want to set payment_intent_data.setup_future_usage: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_intent_data-setup_future_usage
If you set that and pass a customer (or have one created) to the session, then the card will be attached to that customer for future use.
That looks like it! Thank you!