Understand National Check Digit Validation algorithms
masterIBAN validation often requires more than just the standard ISO 7064 MOD 97-10 check. Many countries implement specific 'National Check Digit' algorithms to validate the internal structure of the account number (BBAN), bank codes, or branch codes.
When using iban4j, be aware that different countries use different mathematical models, such as:
- Modulus 11 with weights: Used in the Czech Republic, Slovak Republic, and Spain.
- Modulus 10 with weights: Used in Finland and Estonia (7-3-1 method).
- Modulus 97 variations: Used in Belgium, France, and Tunisia.
- Custom character transformations: Italy uses specific odd/even position transformations for alphanumeric characters.
If you are implementing custom validation logic or verifying why a specific IBAN might fail standard checks, refer to the country-specific documentation for the exact weight tables and transformation rules.