donation_button

by nathanpryor

nathanpryor /donation_button
129 Stars 24 Forks Last release: Not found 2 Commits 0 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

donation_button

This Python script was a quick-and-dirty solution to build an Amazon Dash button that would donate to the ACLU through the page https://action.aclu.org/donate-aclu

The script requires the Mechanize library (http://wwwsearch.sourceforge.net/mechanize/).

Replace the obvious placeholders with your own information.

It's set up to be run on Amazon's AWS Lambda service, with the credit card info stored as the following encrypted environment variables for a tiny bit more security: CCnumber CCexpirationmonth CCexpirationyear CCCSC If you're not doing that, go ahead and put them in as strings.

Note that the state and country menus use numeric codes rather than abbreviations. See the file countryandstate_codes.txt for the select menus from the page so you can find the appropriate value and enter it.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.