Closed AriMaritano closed 5 months ago
The domestic account number for Denmark seems to be 9 digits long, so that in your example it would be 044011624
the trailing 3
is actually the national check digit. There is however a problem with the current implementation of the IBAN
generation in that regard.
IBAN.generate
-method. I will try to address both issues in the upcoming release.
On the other hand it would be good to understand if the Danish bank codes in the wild are in fact 9 digits long and the check digit ist only added when calculating the BBAN.
After reading through this document from the ECBS again, I think it is a legit idea to assume that the account numbers are actually provided as 10-digit long strings. It seems there is no official documentation on the actual algorithms begin used. I think I will just adapt the spec in the IBAN registry accordingly...
The release 2024.04.0
does now assume that Danish account numbers are always 10-digits long.
That's great, thanks @mdomke ! :)
Hey, thanks a lot for the library, it's been of huge help! :)
I'm not sure if there's a bug here or if I'm using
schiwfty.IBAN.generate
wrong for DK bank account. I check the specs for DK IBAN on swift, and they use '00400440116243' as an example. If I'm not mistaken: - '0040' should be the bank code - '0440116243' should be the bank account number