arturmkrtchyan/iban4j

Vatican Iban

Closed this issue · 5 comments

Library return an error with Vatican iban.
Country Code "VA" is not present in BbanStructure.

Hi @fiaschi,

Do you have any documentation on the VA IBAN structure?

When do you plan to release a 3.3.0?

Issue still persists on 3.2.3-RELEASE.

Iban.valueOf("VA12345678912345678912");

 Exception in thread "main" org.iban4j.UnsupportedCountryException: Country code is not supported.
 	at org.iban4j.IbanUtil.validateCountryCode(IbanUtil.java:331)
 	at org.iban4j.IbanUtil.validate(IbanUtil.java:74)
 	at org.iban4j.Iban.valueOf(Iban.java:150)

I expected an exception like:

[VA12345678912345678912] has invalid check digit: X, expected check digit is: Y

But it seems that it still fails on the country code validation.

@adnanel if you can not wait for the next release, check iban4g. Fix is included in latest release: https://github.com/NaluKit/iban4g