#bruno_api

1 messages · Page 1 of 1 (latest)

neon shuttleBOT
#

👋 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/1397212619278127134

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

magic inlet
#

P.S.: when a card is added through Stripe Checkout, that saved card is re-rendered properly on Payment Elements and Stripe Checkout. However, the other way around doesn't seem to be working at the moment

obtuse trench
#

Most likely you do not have full billing details collected for the payment method

#

The requirements for this are shown here:

#

This is most often what is not satisfied:

The payment method includes billing_details required by the Checkout Session’s billing_address_collection value:

  • auto requires values for email, name, and address[country]. US, CA, and GB billing addresses also require address[postal_code].
  • required requires values for email, name, and all address fields.
#

Ensure those are set as required on the payment method billing details

magic inlet
#

I see 🤔 does it need to be linked on the payment method object as well? I'm asking because we have all this data on the customer level

obtuse trench
#

Neither you nor Stripe can assume a given Customer-level address is valid for a specific payment method

#

I have old credit cards with a previous residential address on them because i never updated it and i get all my bills electronically

magic inlet
#

I see... Yeah, I just used stripe payment_methods update and added an e-mail address to the card. Now it is displayed correctly

#

Can we use the payment element itself to collect/prefill e-mail address in this case? That's how we save card information to the customer at the moment

#

We already collect address information, but e-mail is missing

obtuse trench
#

That's a checkout-specific requirement, which should be set if saved via checkout, but when crossing from elements to checkout you need to satisfy it yourself

magic inlet
#

I see.
Thanks, that explains the behavior for now 🙂 I'll check how to fix it internally

obtuse trench
magic inlet
#

Aah, perfect

obtuse trench
#

That gets sent to the payment method object, so you can put whatever email you have there

magic inlet
#

Sounds like a good solution to me 🙂 I think that's the strategy we're gonna use

#

We already prefill address information when available

#

I'll just add the e-mail address to the scope of prefilled data

#

Thanks for your support!

obtuse trench
#

NP!