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

[FR] HSBC bank IBAN invalid #67

Closed yohannpoli closed 5 years ago

yohannpoli commented 5 years ago

Hi,

The "IBAN.isValid" method seems to work fine for French specification in general, but i encounter some invalid IBAN when i use the sample from HSBC.

Here the values from their spec:

France | FR | 27 | FR24 2002 0202 2606 0002 4M02 606

It seems that the iso7064Mod97_10 is not equals to 1.

Is this a normal behaviour?

Thanks in advance for your help.

LaurentVB commented 5 years ago

Hey Yohann, thanks for the report. The validator on https://www.iban.com also marks this IBAN as invalid because the check digit. I think the error is on the HSBC website... Good luck reporting a bug to them :-/

yohannpoli commented 5 years ago

Ok, sorry and thanks for your help @LaurentVB