#Bit-error

1 messages · Page 1 of 1 (latest)

uneven wing
burnt marten
#

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 ?

uneven wing
#

Thanks! Could you also share the request ID that succeeded without that parameter?

burnt marten
#

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

uneven wing
#

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.

burnt marten
#

oh you're right

#

so why one gets accepted and the other one not ?

uneven wing
#

I don't know yet, give me a few minutes to investigate.

burnt marten
#

okk thanks

uneven wing
#

The request that failed has a country code of CH, so it needs the line1 property.

burnt marten
#

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

uneven wing
#

That's one option. The other option is to use the Payment Element, that would take care of that automatically for you.

burnt marten
#

and then show additional fields

uneven wing
#

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.

burnt marten
#

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

uneven wing
#

many thanks for your valuable support, I really appreciate it
Happy to help 🙂