#thibault_code

1 messages ยท Page 1 of 1 (latest)

tidal blazeBOT
#

๐Ÿ‘‹ 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.

stoic fulcrum
#

Hi there

rare lotus
#

Hi

stoic fulcrum
#

You are asking about pre-filling an attached PaymentMethod in Stripe Checkout?

rare lotus
#

yes

stoic fulcrum
rare lotus
#

yea i've read this multiple times but i don't find the reason ๐Ÿ˜„

stoic fulcrum
#

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?

rare lotus
#

Ok 2 sec

#

Do you need an id?

stoic fulcrum
#

Yep a request ID (req_xxxx) or a Checkout Session ID

rare lotus
#

req_8iJ0r3F2sOvc2R

tidal blazeBOT
rare lotus
#

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.

stoic fulcrum
#

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.

rare lotus
#

this is not what i see from the dashboard

obtuse hare
#

Hi hi! Iโ€™m going to be taking over for my colleague here. Please give me a minute to read back and understand things.

rare lotus
#

Hi no problem

obtuse hare
#

Ok, sorry - can you re-summarize the issue for me?

rare lotus
#

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

obtuse hare
#

Is there a URL where I can see this UI myself?