Page 1 of 1

Validating bank account numbers

Posted: Tue Oct 10, 2023 10:41 am
by rdonnay
Does anyone have Xbase++ code for validating a bank account number using the check digit algorithm?

I'm not sure if the Luhn algorithm is correct for validating bank accounts.
It claims that account numbers are 9 digits or greater yet many of the accounts in our database are only 8 digits.

Re: Validating bank account numbers

Posted: Tue Oct 10, 2023 11:01 pm
by k-insis
Just to clarify: You are seeking checker for US bank acc number or standard iBAN transaction account ?



rdonnay wrote: Tue Oct 10, 2023 10:41 am Does anyone have Xbase++ code for validating a bank account number using the check digit algorithm?

I'm not sure if the Luhn algorithm is correct for validating bank accounts.
It claims that account numbers are 9 digits or greater yet many of the accounts in our database are only 8 digits.

Re: Validating bank account numbers

Posted: Thu Oct 12, 2023 5:52 am
by rdonnay
You are seeking checker for US bank acc number or standard iBAN transaction account ?
Actually, all of our bank transactions are with US banks so I really don't need an IBAN validation, however, I may need to go that route if I can't find an easy way to validate a US bank account.

Re: Validating bank account numbers

Posted: Thu Oct 12, 2023 9:04 am
by skiman
Hi Roger,

Have you already used that algoritme for your account numbers with 8 digits? The Luhn algoritme should work with any length.

Re: Validating bank account numbers

Posted: Thu Oct 12, 2023 10:53 am
by rdonnay
The Luhn algoritme should work with any length.
I will give it a try. Thanks.