DoSomething Payment - DoSomething/legacy-website GitHub Wiki

The DoSomething Payment module integrates with Stripe, and provides a custom Drupal block which displays a Stripe payment form. This block is can then be embedded in a Static Content via the "Custom Blocks" Blockreference field.

The Paraneue theme contains relevant Javascript used to generate a Token, which is passed to the Stripe API.

The Stripe API Keys are set from the DS Payment configuration form, found at admin/config/dosomething/dosomething_payment

Testing

Stripe provides test API keys in order to use their test credit card numbers.

In order to test, set up the test keys (https://github.com/DoSomething/ServerConfig/wiki/1.0-Dosomething) in the config settings.

There is a shortcut to prepopulate the Donate Form with a test credit card number, visit the Donate page with a query string of testing=1. e.g. example.dosomething.org/donate?testing=1

Fraud battle of 2015

Throughout the summer of 2015 we experienced people using our site donation as there carding test. Information, discussion and various defense strategies can be found in the #donate slack room and this Trello board: https://trello.com/b/F6UrBLr1/donate-fraud