-
Notifications
You must be signed in to change notification settings - Fork 191
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
Add email access token logic to "View In Browser" link in Donation Receipt email #1790
Comments
@Benunc Make sense. I will think about it how we can make donor experience better with donor reciepts and Let you know. |
@ravinderk @DevinWalker I've added some of my findings and suggestions after testing as per our discussion over call today. Some Findings
Suggestions
|
Response1. Ensure the 2.
Disagree, leave it enabled. Email Access only applies to after the donation to retrieve donation records and manage subscriptions, etc. This should be easily accessible still. 3.
Agreed. This is the underlying issue we're trying to address here. Please resolve this as you describe. |
@raftaar1191 Issue has been fixed. Please review again. |
Checking @ravinderk |
Checking and updating in the sheet @ravinderk Thanks @mehul0810 for the PR |
Issue Overview
Currently, the "view in browser" link in a donation confirmation email will only work if the link opens in a browser where the transaction just took place, because the session is still active.
Expected Behavior
The "View In Browser" link should create a session in the same way an email access token does. That way, no matter where the donor clicks that link (on a different device, using a different browser, etc), they will have access to the donation receipt and other associated donor account information.
Current Behavior
Site is set up without email access, and no login is required to donate (on a one-time donation).
Donor submits a one-time donation on his laptop, but does not immediately check his email. Later, on his phone, he clicks the "view receipt in browser" link.
He's greeted with this confusing box:
He doesn't have a login. So he's stuck.
Possible Solution
Since we already know the user has access to the email account (where he clicked the link), it would make sense to add some of the verified token logic from our email access class to that link. That way, no matter what device he's on, the donor can see his donation receipt and history.
This is what is added in our email access class once the token has been verified:
This line is here: https://github.com/WordImpress/Give/blob/master/includes/class-give-email-access.php#L142
Steps to Reproduce (for bugs)
You'll get the box above.
Even with Email access enabled, you'll still get a confusing "put in your email" form, and that seems unnecessary because we already know they have access to that email. They clicked a link in it.
Todos
The text was updated successfully, but these errors were encountered: