Project60 / org.project60.sepa

SEPA direct debit integration with civicrm
19 stars 46 forks source link

More human readable IBAN #423

Open jooooaah opened 7 years ago

jooooaah commented 7 years ago

On different places where the IBAN occurs, it would be nice to see it formatted in the official way ( XX00 0000 0000 0000 0000 00). It's easier for the user to control the correctness with blanks on the right places.

Also in the dropdown-combo which contains the IBAN it would be nice to see the number formatted. Perhaps the IBAN could be entered with whitespaces which can easily removed afterwards, too.

bjendres commented 7 years ago

I agree, that would be nice. Is the format you mentioned (blocks of four) applicable for all IBANs or is that country specific?

jooooaah commented 7 years ago

In Germany it's defined in the normation DIN 5008. The official IBAN standard doesn't have any ISO normination, but in all countries the used format should be the same: blocks of four (the length differs) filled from left to right and the length of last block depends on the total length

https://en.wikipedia.org/wiki/International_Bank_Account_Number