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

Rework donate_form.js to Display Amount Donated on Thank you page #176

Open
Rio517 opened this issue Jul 29, 2015 · 0 comments
Open

Rework donate_form.js to Display Amount Donated on Thank you page #176

Rio517 opened this issue Jul 29, 2015 · 0 comments

Comments

@Rio517
Copy link
Contributor

Rio517 commented Jul 29, 2015

The fastest way to do this would be to store the amountDonated in the client when our pledge service responds with success, the fetch the value from this cookie.

https://github.com/MayOneUS/mayday-2.0-frontend/blob/master/_assets/javascripts/_includes/donate_form.js#L273
Current thanks page: https://mayday.us/donate-thanks/

The best way to do this would be to rework the pledge.js flow to allow a callback to be passed in that accepts the amount donated. This could fall back to the existing redirect.

@Rio517 Rio517 changed the title Rework Pledge.js to Display Amount Donated on Thank you page Rework donate_form.js to Display Amount Donated on Thank you page Aug 6, 2015
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

No branches or pull requests

1 participant