#thibault_checkout-paymentmethod-bug

1 messages ยท Page 1 of 1 (latest)

delicate pelicanBOT
#

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

๐Ÿ“ 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.

haughty void
#

hello! can you share the example PaymentMethod id?

#

Anyway, without a PaymentMethod id to look at, I'm guessing that is because the a valid billing address, billing name and billing email are required on the payment method for Checkout to prefill the customerโ€™s card details - https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-customer

I think your PaymentMethod which is created via the SetupIntent doesn't have a billing address, billing name and billing email

delicate pelicanBOT
tranquil otter
#

hello

finite copper
#

Hello. My colleague had to go so I am taking over. Please be aware this server is for synchronous live chats. We close threads that go inactive

#

Can you provide the ID of the payment method you expect to be displayed?

tranquil otter
#

yes i know sorry

#

pm_1RgomfPu0E9QU25yp4tgkvY7 and pm_1RgqfVPu0E9QU25yezC0bAZA

#

i expect both to be able to be displayed

#

pm_1RgqfVPu0E9QU25yezC0bAZA cannot be displayed even if i delete pm_1RgomfPu0E9QU25yp4tgkvY7

finite copper
#

For pm_1RgqfVPu0E9QU25yezC0bAZA can you add a billing_details.email value?

tranquil otter
#

Hmm i'll try 2 min

finite copper
#

Unfortunately this is occurring due to a known bug. It occurs after the Customer has provided all their info in the Checkout Session and some additional checks are run. The results of these checks are unsetting some of the values that the Customer provides and without these values we don't display those saved payment methods.

tranquil otter
#

Hmm

#

Is there any workaround?

finite copper
#

That is what I'm asking you to test. Adding back the billing details that were removed should enable redisplay

tranquil otter
#

Is it possible to update a payment method to add email?

#

I don't find it in the api documentation

finite copper
tranquil otter
#

oops my bad

#

2 sec

finite copper
#

No worries

tranquil otter
#

ok its done. I retry

#

yeah it works

#

๐Ÿ˜„

#

So billing_details should be exactly the same

#

as the one from customer

finite copper
#

Yes, exactly!

#

I'm glad it worked out

tranquil otter
#

Thanks for your help

finite copper
#

Happy to shed what ๐Ÿ’ก I can ๐Ÿ™‚

tranquil otter
#

byby

finite copper
#

๐Ÿ‘‹

delicate pelicanBOT