jarden-digital / nz-bank-account-validator

A validator for New Zealand bank accounts
MIT License
24 stars 2 forks source link

Kiwi Bank account validation is failing #3

Open mahesh-theta opened 1 month ago

mahesh-theta commented 1 month ago

I have a valid account number for Kiwi bank and it's failing:-

38-9019-1014050-00

any idea?

GeorgeDewar commented 1 month ago

Hi @mahesh-theta, are you certain that account number is written correctly? According to a different calculator it fails the checksum, while I have also seen other validation logic elsewhere that requires the account part (1014050) to start with a zero. It fails validation at a major other bank. Hopefully there is a typo or else I think KiwiBank customers are going to have some big problems.

maheshvaz commented 3 weeks ago

Hi @GeorgeDewar, Thank you for your response. Yes, it fails with a few of bank account numbers starting with 1 million series (like the one above). We had a call with IRD to update their validation algorithm.