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

Send WorldPay emails to contact_email for AD renewals #278

Merged
merged 4 commits into from
Oct 8, 2018

Conversation

irisfaraway
Copy link
Member

@irisfaraway irisfaraway commented Oct 5, 2018

https://eaflood.atlassian.net/browse/WC-489

Users sometimes go through the assisted digital route to renew because they cannot access their account. When a user goes through WorldPay for payment, we send the account email through to WorldPay, which it then uses to send confirmation of the payment. If the user is AD because they can't access the account, this makes the confirmation meaningless.

So if a renewal is done via assisted digital, we should be passing the contact email to WorldPay, and not the account email.

https://eaflood.atlassian.net/browse/WC-489

Users sometimes go through the assisted digital route to renew because they cannot access their account. When a user goes through WorldPay for payment, we send the account email through to WorldPay, which it then uses to send confirmation of the payment. If the user is AD because they can't access the account, this makes the confirmation meaningless.

So if a renewal is done via assisted digital, we should be passing the contact email to WorldPay, and not the account email.
@irisfaraway irisfaraway self-assigned this Oct 5, 2018
The XML should use a different email address when the renewal is AD, so we need a new fixture and a new spec.
We do this by checking if the current user's email matches the renewal account email. If they do, then the user who owns the registration is doing the renewal and it must be digital. If they don't, then another user is doing the renewal on their behalf and it must be assisted digital.
@irisfaraway irisfaraway merged commit 4297b34 into master Oct 8, 2018
@irisfaraway irisfaraway deleted the feature/wp-email branch October 8, 2018 08:36
@irisfaraway irisfaraway added the enhancement New feature or request label Oct 18, 2018
irisfaraway added a commit that referenced this pull request Dec 7, 2018
https://eaflood.atlassian.net/browse/WC-536

This PR essentially reverts the change made in #278 - when AD users were locked out of their account, we wanted to avoid using an email address they may no longer have access to. However, our registration transfer feature solves that problem, so we can now be consistent about what address we use again.
irisfaraway added a commit that referenced this pull request Dec 7, 2018
https://eaflood.atlassian.net/browse/WC-536

This PR essentially reverts the change made in #278 - when AD users were locked out of their account, we wanted to avoid using an email address they may no longer have access to. However, our registration transfer feature solves that problem, so we can now be consistent about what address we use again.

Also fixed style violations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants