where only the first two chars are the bank code, the next two are the branch code, then another two for an account type, and so on.
Even though there are other sources like xe.com and Bank codes, they seem to be wrong.
Here is an example of why it makes sense to have only 2 letters for the bank code. Let's take IBAN IS140159260076545510730339 - it belongs to a bank with BIC NBIIISREXXX. Searching for this BIC on ibancalculator.com gives us a long list of banks where bank codes consist of three digits, and only the leading 1 is common across all these branches, while 59 points to just one of them.
So, if we change the format of the IBAN of Iceland - reduce the bank code from 4 to 2 symbols - we would extract only 01 from the IBAN above, which would result in the same bank code across IBANs pointing to any branch of the bank.
TODO
Change the IBAN's format for IS code. The new format should be the following:
Problem
Currently, the library defines the following IBAN format for IS country (Iceland):
4 bank code + 2 branch code + 6 account number + 10 identification number
However, Wikipedia shows another format: see International Bank Account Number / IBAN formats by country page - here is a screenshot![screenshot](https://github.com/arturmkrtchyan/iban4j/assets/3031372/26430c03-625d-44f0-8d70-87b81f675c7c)
where only the first two chars are the bank code, the next two are the branch code, then another two for an account type, and so on.
Even though there are other sources like xe.com and Bank codes, they seem to be wrong.
Here is an example of why it makes sense to have only 2 letters for the bank code. Let's take IBAN
IS140159260076545510730339
- it belongs to a bank with BICNBIIISREXXX
. Searching for this BIC on ibancalculator.com gives us a long list of banks where bank codes consist of three digits, and only the leading1
is common across all these branches, while59
points to just one of them.So, if we change the format of the IBAN of Iceland - reduce the bank code from 4 to 2 symbols - we would extract only
01
from the IBAN above, which would result in the same bank code across IBANs pointing to any branch of the bank.TODO
Change the IBAN's format for IS code. The new format should be the following: