Extend extractIban to extract bankAccount
halafi opened this issue · 3 comments
halafi commented
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
Simplify commented
Extraction of account number, bank and branch code is planned for future release.
AtoianAvetik commented
Hi! Any progress of this?
Simplify commented
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.