Skip to content

Update donation page#218

Merged
mkalish merged 3 commits into
masterfrom
update-donation-page
Jan 3, 2018
Merged

Update donation page#218
mkalish merged 3 commits into
masterfrom
update-donation-page

Conversation

@stvnrlly
Copy link
Copy Markdown
Member

This switches from a link to the CFA donation page to an embedded form that'll deposit straight to the account managed by District Civic Labs. It uses Stripe and AWS Lambda to make things work behind the scenes.

The Lambda URL could use some DNS beautifying, but that can be included in this pull request or updated later.

Comment thread donate.html Outdated
// Get the token ID to your server-side code for use.
// The "00" is there because Stripe deals in cents rather than dollars, but the form
// only asks for a whole dollar amount.
var amount = Number(document.getElementById('donation-amount').value + "00")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super nitpick, but these should probably be const

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can handle that :)

Comment thread donate.html
"email": token.email,
"account": account
});
$.post("https://b9sq87esw7.execute-api.us-east-2.amazonaws.com/prod/codefordc-stripe-processor", send, function(data, status){
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this in the codefordc aws account?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, the District Civic Labs one. We should discuss consolidation and/or access for you.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, are you free to meet for a half hour this weekend next week to figure it out?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, there should be something available. I'll follow up with you.

@stvnrlly stvnrlly requested a review from mkalish January 2, 2018 02:33
@mkalish mkalish merged commit 089cd88 into master Jan 3, 2018
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

Successfully merging this pull request may close these issues.

2 participants