#Stelios - Checkout

1 messages · Page 1 of 1 (latest)

jovial marlin
#

Hi there!

#

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

pseudo wedge
#

@jovial marlin I added a name, a billing email (same as account email checkbox), and a billing address to the customer account and Checkout pages still don't display the customer default payment card details, any other ideas?

jovial marlin
#

to the customer account
It needs to be added to the PaymentMethod object, not the customer

pseudo wedge
#

@jovial marlin I filled the fields cardholder name, street, city, zip, coutry on all payment methods of my customer but the checkout page still doesn't show the card details of his default payment method. Do I need to fill some payment_method or payment_method_type field when creating a checkout session from the API?

jovial marlin
#

Can you share the Checkout Session ID?

jovial marlin
#

Thanks! Give me a few minutes to look into this.

#

This customer doesn't have an email, so it's expected to not work:

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

pseudo wedge
#

@jovial marlin the email is already pre-filled in the checkout page and I can see an email in on the customer id cus_M68EXqdOQ9Tont

jovial marlin
#

Yes but I think you need to also set the email on the Payement Method.

hasty widget
#

👋 taking over for my colleague. Let me know if there's any follow-up Qs I can answer!

pseudo wedge
#

@jovial marlin updating the Payment Method with the email solved my issue, thank you very much

#

@hasty widget thanks, everything is ok, bye