#thibault_code
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/1390378037190590464
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there
Hi
You are asking about pre-filling an attached PaymentMethod in Stripe Checkout?
yes
Gotcha, the requirements for that are described here: https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-customer
yea i've read this multiple times but i don't find the reason ๐
In subscription mode the PaymentMethod must be set as the default and you need a valid billing address/name/email on the PaymentMethod
Okay can you share an example Checkout Session creation request where you aren't seeing this happen but expect to?
Yep a request ID (req_xxxx) or a Checkout Session ID
req_8iJ0r3F2sOvc2R
In my example, the mastercard is prefilled in the checkout session because i created it using checkout session but i'm not able to change it to the visa one.
The pre-filled one is the one set as the default on the Customer
So you would have to update the Customer's default (their invoice_settings.default_payment_method) if you want the other one to be pre-filled.
this is not what i see from the dashboard
Hi hi! Iโm going to be taking over for my colleague here. Please give me a minute to read back and understand things.
Ok, sorry - can you re-summarize the issue for me?
Im unable to use a payment method created from setup intent api on a checkout session.
If you look at my first screenshot, my visa card has been created by setup intent api.
And on checkout session i see only the MasterCard created from another checkout session. Not the visa one
Is there a URL where I can see this UI myself?