#mkkumawat3333
1 messages · Page 1 of 1 (latest)
You can set payment_intent.setup_future_usage to indicate how you want to save the card for future https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_intent_data-setup_future_usage
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Notably, the card details won't be auto-filled in the customer's next checkout session (unless the customer uses link but that is its own thing) but you can re-use that payment method in your code as needed
(unless the customer uses link but that is its own thing) could you please elaborate it more?
Sorry, to be clear there is no way to completely refill card details for a returning customer on Checkout at the moment. One of our other offerings, Link, will let the user save their payment methods to an account with link.com and when they return if they are still logged in to Link then the Checkout Session will show pre-saved options for that https://stripe.com/docs/payments/link
It is hard to explain but if you make a test payment with link and then open another Checkout Session it will be clearer
Can I save the billing details and prefill it when user comes next time?