#Bit-error
1 messages · Page 1 of 1 (latest)
Hi Can you share the request ID (req_xxx)? Here's how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
hello goodmorning
req_f83upTFEQQtVLt
Missing required param: billing_details[address][line1].
Could you help me understand ? I'm using "sepa_debit" for many other transactions, and I only ask my customers to provide the email address, and they get accepted with no problem
could it be that it depends on the origin bank country ?
so that, for example, for italian banks I don't require to ask the address, while for swiss banks like this one, the address is required ?
Thanks! Could you also share the request ID that succeeded without that parameter?
yes, let me find one
req_041J2MOetfLAQR
hummm I see... in this case I'm passing billing_details but with all fields set to null... interesting...
so it seems it's my fault
I'm passing billing_details but with all fields set to null...
I see they are set to null in the response body, but not in the request you sent.
I don't know yet, give me a few minutes to investigate.
okk thanks
Okay, this is expected and is mentioned here: https://stripe.com/docs/payments/sepa-debit/accept-a-payment#web-submit-payment
Additionally, IBANs with the country codes AD, PF, TF, GI, GB, GG, VA, IM, JE, MC, NC, BL, PM, SM, CH, and WF require the country and line1 properties of the billing_details.address property.
The request that failed has a country code of CH, so it needs the line1 property.
oh, I see...
so now I need to find a way to identify what's the country of the bank of the iban my customer enters !!!?
make a lookup for specific countries
and show an additional field
I have a long road in front of me
ok I guess I'll need to use the "change event"
detect the country
That's one option. The other option is to use the Payment Element, that would take care of that automatically for you.
and then show additional fields
Yes this is mentioned in the link I shared earlier:
Listen to the change event of the IBAN element to get the IBAN’s country code.
I can't, my customers are really "picky", if I don't customize the GUI, the colors, the messages, and everything else in this world, they'll be less likely to complete the payment process
working with italian customers is never easy
I'll go for the "on_change" version and work a little on that, let's see what happens
many thanks for your valuable support, I really appreciate it
Just FYI the Payment Element has many customization options: https://stripe.com/docs/stripe-js/appearance-api
many thanks for your valuable support, I really appreciate it
Happy to help 🙂