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

Ensure payment email is sent, irrespective of wait_for_payment registration mode #4549

Merged

Conversation

sergei-maertens
Copy link
Member

Closes #4334

Changes

  • If wait_for_payment option is enabled and the submission is paid, immediately schedule the payment update email too

Checklist

Check off the items that are completed or not relevant.

  • Impact on features

    • Checked copying a form
    • Checked import/export of a form
    • Config checks in the configuration overview admin page
    • Problem detection in the admin email digest is handled
  • Release management

    • I have labelled the PR as "needs-backport" accordingly
  • I have updated the translations assets (you do NOT need to provide translations)

    • Ran ./bin/makemessages_js.sh
    • Ran ./bin/compilemessages_js.sh
  • Commit hygiene

    • Commit messages refer to the relevant Github issue
    • Commit messages explain the "why" of change, not the how

Added a test to assert that two emails are sent when registration is
deferred until payment is received.
Payment emails may need to go to a billing department, which doesn't
need access to the registration details. Sending one email doesn't
imply the other, so ensure that both are sent if the recipients
are not the same.
@sergei-maertens sergei-maertens added the needs-backport Fix must be backported to stable release branch label Jul 22, 2024
@sergei-maertens sergei-maertens changed the title Ensure payment email is always sent Ensure payment email is sent, irrespective of wait_for_payment registration mode Jul 22, 2024
Copy link

codecov bot commented Jul 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.60%. Comparing base (9280bb2) to head (489be9d).
Report is 494 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4549   +/-   ##
=======================================
  Coverage   96.60%   96.60%           
=======================================
  Files         725      725           
  Lines       24125    24129    +4     
  Branches     2870     2871    +1     
=======================================
+ Hits        23305    23309    +4     
  Misses        559      559           
  Partials      261      261           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sergei-maertens sergei-maertens merged commit 1033b07 into master Jul 23, 2024
31 checks passed
@sergei-maertens sergei-maertens deleted the issue/4334-ensure-payment-email-is-always-sent branch July 23, 2024 10:23
sergei-maertens added a commit that referenced this pull request Jul 23, 2024
Payment emails may need to go to a billing department, which doesn't
need access to the registration details. Sending one email doesn't
imply the other, so ensure that both are sent if the recipients
are not the same.

Backport-of: #4549
sergei-maertens added a commit that referenced this pull request Jul 23, 2024
Payment emails may need to go to a billing department, which doesn't
need access to the registration details. Sending one email doesn't
imply the other, so ensure that both are sent if the recipients
are not the same.

Backport-of: #4549
@sergei-maertens
Copy link
Member Author

sergei-maertens commented Jul 23, 2024

Backports:

sergei-maertens added a commit that referenced this pull request Jul 23, 2024
Payment emails may need to go to a billing department, which doesn't
need access to the registration details. Sending one email doesn't
imply the other, so ensure that both are sent if the recipients
are not the same.

Backport-of: #4549
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-backport Fix must be backported to stable release branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When wait for payment is enabled, payment update notification e-mail is ignored.
2 participants