#teriyaki

1 messages · Page 1 of 1 (latest)

golden flaxBOT
hybrid jackal
#

Hi there 👋 have you completed a payment for the Customer whose ID you're providing when creating a new Checkout Session? Can you share the Customer ID that you're using for testing?

jovial vapor
#

Hi @hybrid jackal ! The customer already has a subscription in my app (and in Stripe), so he has default payment method and other details.
customer ID = cus_Mm4Sl8HD57qmKe

tired anvil
#

👋 stepping in as toby needs to step away

#

Taking a look

#

So the key for this is:

A valid billing address, billing name and billing email are required on the payment method for Checkout to prefill the customer’s card details.

#

Doesn't look like those things are true for that PaymentMethod

jovial vapor
#

Hi @tired anvil !
I just updated billing details of the customer , I attached the screenshot from Stripe Dashboard.
But still, the card is not pre-filled.
Do you happen to know what else fields should I update?

tired anvil
#

Those details are the Customer's details, not the PaymentMethod's details.

#

The easiest way to test this is to actually just go through a Checkout flow and fill out all the necessary details for that new PaymentMethod/Customer

#

Then revisit a new Checkout Session using that Customer

jovial vapor
#

Thanks, I'll try!

tired anvil
#

👍

jovial vapor
#

Hey @tired anvil !
I followed the flow, but only the customer's name became pre-filled
Payment Method look like this
What am I missing? 😫

tired anvil
#

Hmmm so there is no email on that PaymentMethod. I thought we carried down the email if you went through the Checkout Session

#

Can you give me that PaymentMethod iD?

jovial vapor
#

Sure, it is pm_1M2WJlI26eHXRQ5AdGPBIbDP

tired anvil
#

So wait that PaymentMethod was still created outside of Checkout, no?

#

Looks like that was created using Card Element?

jovial vapor
#

Yes, it was created during the initial subscription this customer has

#

Card Element, exactly

tired anvil
#

Or otherwise you would update the PaymentMethod's email server-side

#

It won't show up in Checkout unless it has a billing email associated (which your example above does not)

jovial vapor
#

Thank you so much, @tired anvil ! I'll try that! Have a nice day!