Skip to content

Commit

Permalink
Fixed problem that IBANs get wrongly formatted if the inputted data a…
Browse files Browse the repository at this point in the history
…lready contains spaces
  • Loading branch information
jbtronics committed Feb 11, 2025
1 parent 46f1f6d commit fb1ea0a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Entity/Embeddable/PayeeInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ public function getIban(): ?string
*/
public function getIbanFormatted(): string
{
return chunk_split($this->iban ?? '', 4, ' ');
//Use IBAN version without spaces to get correct formatting, independent of the input
return chunk_split($this->getIbanWithoutSpaces(), 4, ' ');
}

/**
Expand Down

0 comments on commit fb1ea0a

Please sign in to comment.