#shadowjakey

1 messages · Page 1 of 1 (latest)

light sonnetBOT
obtuse turtle
#

Hi. Can you explain a little more what you mean by this?

gilded arrow
#

@obtuse turtle when I create a checkout session using the customer id that has a stored payment method, the stored payment method does not come up in the checkout session page, it prompts you to manually input card numbers again

obtuse turtle
gilded arrow
#

@obtuse turtle thank you for the reccommendation, but that still requires the first time input of card information, is there no way to use the card on the customer id's account?

obtuse turtle
#

If they already have a card set up for future usage, I think that should be prefilled as well. Possible I'm wrong though

#

Can you share the checkout session id so I can take a look?

#

cs_ starts with that

gilded arrow
#

cs_test_a13d4au0uIunGOY2uwwblxWZbLBVf6l9ZQfHyCtQxcmifwg3I99zrf7KbU

#

@obtuse turtle Thank you for helping me out

obtuse turtle
#

In the video I shared, Matt sets up the card for on_session usage

#

So I recommend creating a new SetupIntent and payment method for that customer setting future_usage to on_session

#

Then create a new Checkout Session and see if the card is prefilled

gilded arrow
#

The customer sets their card information throught the stripe billing portal, how do I set the setupIntent from future_usage to on_session in the customer portal?

obtuse turtle
#

Ah ok this is through the billing portal

#

Let me check with a colleague on this. Not sure why it's not being prefilled

gilded arrow
#

Thank you so much for the help, I appreciate it, let me know what you find out, I've been searching through the documenation on it and the only thing I've seen is that if you pass the customer Id in in the create.checkout.session function, it should prefill it

obtuse turtle
#

Yeah. Will get back to you

#

They got back to me and said for the checkout PM prefill to work the PM has to have billing_details.name and billing_details.email populated

gilded arrow
#

How do I set that in the checkout session create / billing portal?

obtuse turtle
#

When creating the payment method, you need to provide email and name

gilded arrow
#

I kinda understand, the payment method stored under the customer is missing the name, but in the billing porta, when you enter card information, there's no input for name

obtuse turtle
#

Yeah so unfortunately those PMs won't be prefilled then

#

That's just how the Checkout prefilling works currently

gilded arrow
#

i see what you mean, could that mean it is a bug in the customer portal?

#

if so, that is really interesting

obtuse turtle
#

No the customer portal just doesn't currently collect name and email there

#

Would need to be a feature request

gilded arrow
#

i see, but that's weird how in the customer portal it does not require the customer to fill in the name and email

obtuse turtle
#

Yeah because those aren't really required fields for most things

#

This is just a niche requirement for prefilling in Checkout

gilded arrow
#

I see, thank you for helping me out

obtuse turtle
#

No problem