#Francesco-iban

1 messages · Page 1 of 1 (latest)

gusty belfry
#

@tawdry juniper what sort of validation exactly?

tawdry juniper
#

we'd like to send a string with the iban value to our backend, so that we can check if it's a valid iban

gusty belfry
#

hmm you can just use our IBANElement from stripe.js though, it won't accept an invalid IBAN.

tawdry juniper
#

hmm, so the internal validation is a guarantee that the iban is associated with.. idk, a real person/bank account?

gusty belfry
#

no it doesn't, just that it's a valid string and a sensible IBAN for a real country and bank.

#

you can't know if the details are completely valid until you process the payment and it either succeeds or fails

tawdry juniper
#

we have a backend where for italian ibans we can validate if the account exists, if the account belongs to the user, and if the account is active

#

we need to validate the IBAN with this backend service, while keeping the UI consistent for our customer. can we build the validation togheter with stripe's validation?

#

input handlers?

gusty belfry
#

well you can't really, since we don't give you the raw IBAN

tawdry juniper
#

can we perform the validation on another field and then pre-fill the stripe hosted fields

#

?

gusty belfry
#

no you can't pre-fill our Elements

tawdry juniper
#

create a backend payment method.. this could work