ibantools icon indicating copy to clipboard operation
ibantools copied to clipboard

Extend extractIban to extract bankAccount

Open halafi opened this issue 3 years ago • 1 comments

Expected behavior

// returns {iban: "NL91ABNA0417164300", bban: "ABNA0417164300", countryCode: "NL", bankAccount: "0417164300" valid: true}
ibantools.extractIBAN("NL91 ABNA 0417 1643 00");

Actual behavior

// returns {iban: "NL91ABNA0417164300", bban: "ABNA0417164300", countryCode: "NL", valid: true}
ibantools.extractIBAN("NL91 ABNA 0417 1643 00");

Steps to reproduce the behavior

the length of bank account number varies per country

halafi avatar Nov 23 '21 07:11 halafi

Extraction of account number, bank and branch code is planned for future release.

Simplify avatar Nov 23 '21 08:11 Simplify

Hi! Any progress of this?

AtoianAvetik avatar Nov 17 '22 13:11 AtoianAvetik

Sorry that it took me almost two years to implement this. It works only for countries where I have data to do extraction. Except accountNumber, bankIdentifier and branchIdentifier is also extracted, when available. I'll make release today or tomorrow with this code.

Simplify avatar Oct 14 '23 19:10 Simplify