#Francesco-iban
1 messages · Page 1 of 1 (latest)
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
hmm you can just use our IBANElement from stripe.js though, it won't accept an invalid IBAN.
hmm, so the internal validation is a guarantee that the iban is associated with.. idk, a real person/bank account?
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
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?
well you can't really, since we don't give you the raw IBAN
if you're able to handle this then you'd just use a raw HTML input for the IBAN, use it with your system as you need, and then call https://stripe.com/docs/api/payment_methods/create#create_payment_method-sepa_debit-iban directly on the server side to import the IBAN into Stripe
can we perform the validation on another field and then pre-fill the stripe hosted fields
?
no you can't pre-fill our Elements
create a backend payment method.. this could work