#andy_59835
1 messages · Page 1 of 1 (latest)
No, but it supports showing the the default payment method
So for the [Checkout] product, we are allowed to save 1 card as default payment method, and just showing that one on future checkouts.
What can we do to support showing multiple cards including non defaults
or must I use the API to retrieve this list of card then show it?
Yeah you'd need to use the api to retrieve them and show them to your customer on your site
Understood. Ok, lets say we stick with the [checkout] product. Can we provide a UI where customer can update only their default payment method?
Hi 👋
I'm stepping in as @noble thicket needs to go.
You could use the Checkout Session in setup mode to save a payment method to your customer https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-mode. but it would be up to you to set that as their default once the Payment Method is created.
I see. One last question, If a customer goes thru checkout and successful made payment, does it return a newly created CustomerId? Or would we have to create a brand new customer before sending them into the checkout process?
If you have the Checkout Session configured to create new customers via this parameter https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-customer_creation then when the checkout.session.completed event fires it will include the Customer ID in the customer property of the Checkout Session object.
Understood. Thank you so much