arhs / iban.js

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

Valid Iban is considered invalid #62

Closed MorganLebois closed 5 years ago

MorganLebois commented 5 years ago

According to https://www.iban.com/iban-checker the IBAN SN08SN0100152001608930008516 appears to be valid' but according to https://arhs.github.io/iban.js/ it is invalid.

Manu1400 commented 5 years ago

@MorganLebois According to https://bank.codes/iban/validate/ SN08SN0100152001608930008516 is an invalid IBAN. "The IBAN has wrong characters format. Recheck the IBAN."

The structure is https://bank.codes/iban/structure/senegal/

We can close this issue.

LaurentVB commented 5 years ago

Hello @MorganLebois

Senegal is not in the official IBAN registry, so I can't be 100% sure we got this right, but according to the sources I can find (1, 2), Senegal IBAN has the following format:

The IBAN you're testing is therefore invalid. If you have an official source for a different format, I'll be glad to add it to this library.

Thanks @Manu1400 for the check 🙏