#zerozero00_docs
1 messages · Page 1 of 1 (latest)
👋 Welcome to your new thread!
⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1354574700621074462
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there. I think we have a guide for this. One moment
Or, maybe I am misunderstanding your question. Are you asking if, after setting up a payment method on a particular Customer, whether Stripe will use that Payment Method object for future payments without you designating it?
yes, just wondering if a payment method has been setup for a customer, and when I create a checkout session for that customer, will the payment method will be used for that checkout session? like the payment method will tight to that particular customer.
No, it won't, but we will prefill their most recently saved card. https://docs.stripe.com/api/checkout/sessions/create?lang=java#create_checkout_session-customer
Another question, however, is if you have saved their payment method previously and you want to charge them, why create a Checkout Session instead of using the PaymentIntents API to charge them directly?
Checkout requires the user to complete the payment. Is that something you need in the second > nth payments?
in fact we dont save payment method in our system.
Hi hi! I’m going to be taking over for my colleague here.
Hello, a follow up question about prefill recently save card for checkout page in stripe. is it depends on the stripe customer account from the checkout page?
so if I create the checkout for this particular customer, it shall prefill recently saved card information no matter what broswer has been used, right? I assume the information is stored in stripe's side. and there is a record paired to that stripe customer account
No, you would have to save it.
Are you trying to take a payment and save a card at the same time, or just save a card?
to take a payment and save a card
We describe how to do that here: https://docs.stripe.com/payments/save-during-payment
we are currently using stripe hosted checkout page
For what?
looks like i need to change the mode from "payment" to "setup" when create the checkout session.
If you want to stick with Checkout, the details are here: https://docs.stripe.com/payments/checkout/save-during-payment
ohh, this one is very clear. thanks a lot. i will follow this one.