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

Do not copy receipt_email when init. renewal #899

Merged
merged 3 commits into from
Jul 24, 2020

Conversation

Cruikshanks
Copy link
Member

https://eaflood.atlassian.net/browse/RUBY-1172

This is the scenario

  • User creates a new registration using the new journey in the FO
  • User pays by card so a payment confirmation email is taken and :receipt_email is populated
  • 3 years later user renews but as AD

Irrespective of how user pays, the renewed registration displays the payment confirmation section in Registration details

As we know that the payment confirmation email is only sent for digital users renewing or creating new registrations its a one-time thing against the registration.

So this means when a new renewal is initialised, we should not be copying the receipt email from the registration as it may not be applicable this time.

@Cruikshanks Cruikshanks added the bug Something isn't working label Jul 24, 2020
@Cruikshanks Cruikshanks self-assigned this Jul 24, 2020
https://eaflood.atlassian.net/browse/RUBY-1172

This is the scenario

- User creates a new registration using the new journey in the FO
- User pays by card so a payment confirmation email is taken and :receipt_email is populated
- 3 years later user renews but as AD

Irrespective of how user pays, the renewed registration displays the payment confirmation section in Registration details

As we know that the payment confirmation email is only sent for digital users renewing or creating new registrations its a one-time thing against the registration.

So this means when a new renewal is initialised, we should not be copying the receipt email from the registration as it may not be applicable this time.
@Cruikshanks Cruikshanks marked this pull request as ready for review July 24, 2020 14:56
@Cruikshanks Cruikshanks merged commit 220bbef into main Jul 24, 2020
@Cruikshanks Cruikshanks deleted the do-not-copy-receipt-email branch July 24, 2020 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants