arhs / iban.js

IBAN & BBAN validation, formatting and conversion in Javascript
https://arhs.github.io/iban.js/
MIT License
534 stars 128 forks source link

Invalid IBAN is considered VALID #58

Closed Luckino closed 5 years ago

Luckino commented 5 years ago

The number ES06 0030 1235 0903 0005 0273 is invalid image But it is valid in your site image

LaurentVB commented 5 years ago

Hi @Luckino Thanks for the report. Sorry for the confusion: this library checks that the IBAN you provide is syntactically valid (the country prefix exists, the checksum is correct, the length and type of characters is compliant with the specs). However, this library does not check whether the bank account represented by this IBAN is valid. We don't embed the logic to make sure a bank account exists or is even a valid BBAN (domestic bank account) except for the most basic checks (length and character type)

Hope this helps