Skip to content

Conversation

jtojnar
Copy link
Owner

@jtojnar jtojnar commented Jan 31, 2025

This should make payments much more convenient for mobile-first crowd.

Currently, this is only supported in the initial mail, not in CommunicationPresenter.

I manually verified a generated SPD string using https://qr-platba.cz/pro-vyvojare/validator/

We introduced `accountNumber` field in 254d94d.
Later, in 62ecc0b, we started picking it up from `$parameters['entries']`.
This carried over to the `Entries` configuration model in 290239a.
However, the documentation actually suggests it belongs directly to `parameters`, which makes more sense IMO.

Let’s move it to `Parameters`.
- Validate account number to prevent potential typos.
- Store it as IBAN, to be potentially used in e-mail templates for foreign competitors (`$accountNumberIban` variable).
  - The original string is still kept for more familiar experience for Czech bank account holders.
IIRC, it is needed for currency handling in Money.
This should make payments much more convenient for mobile-first crowd.

Currently, this is only supported in the initial mail, not in `CommunicationPresenter`.

I manually verified a generated SPD string using https://qr-platba.cz/pro-vyvojare/validator/

This introduces a mandatory `gd` dependency.
@jtojnar jtojnar merged commit 64cfaa7 into master Jan 31, 2025
2 checks passed
@jtojnar jtojnar deleted the qr branch January 31, 2025 03:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant