#bruno_api
1 messages · Page 1 of 1 (latest)
👋 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.
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
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:
autorequires values for email, name, and address[country]. US, CA, and GB billing addresses also require address[postal_code].requiredrequires values for email, name, and all address fields.
Ensure those are set as required on the payment method billing details
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
It needs to be on the payment method itself, yes, since billing details can vary for payment methods (eg, using different addresses with different providers).
https://docs.stripe.com/api/payment_methods/update#update_payment_method-billing_details
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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
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
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
I see.
Thanks, that explains the behavior for now 🙂 I'll check how to fix it internally
You can pass the email address in manually at confirm time via the payment method data in confirm params:
https://docs.stripe.com/js/payment_intents/confirm_payment#confirm_payment_intent-options-confirmParams-payment_method_data-billing_details
Aah, perfect
That gets sent to the payment method object, so you can put whatever email you have there
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!
NP!