#saurabh_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/1313414056417427456
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- saurabh_docs, 1 hour ago, 7 messages
Hi there, is it about resurfacing the previously payment method in a checkout session? You can refer to the API reference for the requirements https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-customer
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
yes lets say customer add the payment method endign 4234 and that get saved on their stripe account and now next time when we send a different link I would like them to see the payment method which they added i.e. 4234
Sure, as th doc explains
A valid billing address, billing name and billing email are required on the payment method for Checkout to prefill the customer’s card details.
Does the payment method that you collected previously have all these info?
Previously it was saved on the checkout session only and there they asked for the zip code and the credit card holder name and nothing else.
Can I have checkout session collect that information and would that show the user the previously saved payment method or payment method which is on file ?
Sure you can use checkout to collect those info. Can you try again after you have all these info collected?
I will do that, can you tell me how I can force the checkout session to collect the billing ame, billing address and billing email information ?
Or how do I send the setup intent information when I create the checkout session ?
Set https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-billing_address_collection to required
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
got it Thanks