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

Invalid IBAN number from Ivory Coast #53

Closed MartijnJong closed 6 years ago

MartijnJong commented 6 years ago

We have a customer with an IBAN number from Ivory Coast, this number is a valid number and renderd as valid by www.iban.com

However this libary (which we use in our software) returns that the specific IBAN number is not valid.

Note that for privacy reasons we cannot post the actual bank account number which has the issue.

On https://www.iban.com/structure.html there is a test number with the same behaviour: CI93CI0080111301134291200589

LaurentVB commented 6 years ago

Hi @MartijnJong thanks for the report.

Côté d'Ivoire is not in the IBAN registry so I have trouble finding an official specification for their number. Can you provide any? The contributor who originally added this one probably based himself on https://bank.codes/iban/structure/cote-divoire/ or some similar source. But indeed, from the real-life examples I can gather online, it seems to be wrong.

Will fix and release a patch soon.

Laurent

LaurentVB commented 6 years ago

Hey @MartijnJong , this is now fixed and published to npm as version 0.0.11 Thanks for your help 🙏