Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix inconsistent formatting and validation of IBAN/BIC #542

Merged
merged 1 commit into from
Aug 29, 2019

Conversation

pfigel
Copy link
Contributor

@pfigel pfigel commented Aug 28, 2019

This fixes some inconsistencies in the way IBANs and BICs are formatted and validated in different components. The main issue was that IBANs for PSP creditors would be formatted according to SEPA/IBAN logic (i.e. uppercase, remove spaces), which causes issues for case-sensitive PSPs. Instead, this is now only applied for SEPA creditors.

The IBAN/BIC formatting was moved to a central function to DRY up the code. The formatting is now also applied consistently e.g. in the new mandate form, where previously a lower-case IBAN would've been rejected as invalid.

This also contains some whitespace cleanup that my IDE seems to insist on.

This fixes some inconsistencies in the way IBANs and BICs are formatted
and validated in different components. The main issue was that IBANs
for PSP creditors would be formatted according to SEPA/IBAN logic (i.e.
uppercase, remove spaces), which causes issues for case-sensitive PSPs.
Instead, this is now only applied for SEPA creditors.

The IBAN/BIC formatting was moved to a central function to DRY up the
code. The formatting is now also applied consistently e.g. in the new
mandate form, where previously a lower-case IBAN would've been rejected
as invalid.

This also contains some whitespace cleanup that my IDE seems to insist
on.
@bjendres bjendres merged commit 04d73c3 into Project60:master Aug 29, 2019
@bjendres
Copy link
Member

Thanks @pfigel

@bjendres bjendres added this to the 1.5 milestone Aug 29, 2019
@bjendres
Copy link
Member

Will be released with 1.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants