Skip to content

fix(buy): relabel payment button to its actual action (request payment instructions)#661

Merged
TaprootFreak merged 2 commits into
stagingfrom
feature/buy-payment-confirm-label
Jun 3, 2026
Merged

fix(buy): relabel payment button to its actual action (request payment instructions)#661
TaprootFreak merged 2 commits into
stagingfrom
feature/buy-payment-confirm-label

Conversation

@TaprootFreak
Copy link
Copy Markdown
Contributor

Implements #660.

Pure i18n label fix. The buy-payment button told customers to transfer the money first and click afterwards, but the click is exactly what requests the payment instructions (PUT /v1/realunit/buy/{id}/confirmrequestPaymentInstructions on the API side, sets WAITING_FOR_PAYMENT, returns a reference). The customer should click first, receive the payment slip by email, then pay. Tester feedback: Bojan Jankovic, 28.05.2026 — "Einzig den Text auf dem Button sollte man ändern."

Change (label only)

Lang Old New
de Klicken Sie hier, sobald Sie die Überweisung getätigt haben Zahlungsanweisungen per E-Mail anfordern
en Click here once you have made the transfer Request payment instructions by email

Only the buyPaymentConfirm value in assets/languages/strings_de.arb + strings_en.arb (key keeps its alphabetical position). lib/generated/i18n.dart is git-ignored and regenerated in CI (dart run tool/generate_localization.dart).

Strictly out of scope (untouched)

confirmPayment / BuyConfirmCubit logic, the /confirm endpoint and any API behaviour, buyPaymentInformationDescription, buyExecutedDescription / PaymentExecutedSheet, and the error strings buyPaymentConfirmFailed / buyPaymentConfirmFailedAktionariat.

Tests & goldens

  • No widget test asserts the old literal or the buyPaymentConfirm key (verified across all of test/) — no test code change needed. The button consumer (payment_information_details.dart) uses the generated getter, so the new label takes effect and onPressed still calls confirmPayment.
  • The buy_payment_info_loaded golden renders this button and changes; golden-regenerate.yaml was triggered on this branch immediately after push (not waiting for Visual Regression to fail). The other 6 buy goldens don't render this button and are unaffected.

3-subagent review: Quality + Logic both PASS_CLEAN. Draft until CI (incl. regenerated golden) is green.

TaprootFreak and others added 2 commits June 3, 2026 19:01
The buy-payment button label told customers to transfer the money first and
click afterwards, but the click is in fact what requests the payment
instructions (PUT /v1/realunit/buy/{id}/confirm → requestPaymentInstructions
on the API side): the customer should click first, receive the payment slip by
email, then pay. Update only the buyPaymentConfirm label in both ARB files so
it matches what the button actually does. No behaviour, flow or API change.

Tester feedback: Bojan Jankovic, 28.05.2026.
@TaprootFreak TaprootFreak marked this pull request as ready for review June 3, 2026 17:08
@TaprootFreak TaprootFreak merged commit 1a659e7 into staging Jun 3, 2026
6 checks passed
@TaprootFreak TaprootFreak deleted the feature/buy-payment-confirm-label branch June 3, 2026 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant