mirumee/satchless — pull request #86 by dlinder (2011-12-08 21:34:51+00:00)
Title: Stripe integration via contrib.payment.stripe_provider

This pull request is a Payment Provider for stripe.com, a US credit card processing service appealing to startups because their JS API allows you to avoid handling credit card data entirely, relieving a lot of PCI compliance pressure.

The work is based off the Authorize.net contrib module and accepts either a Card or Customer token. The Card tokens are one-time-use and, internally to stripe_provider, are used to get a Customer token which is then used for payment processing. A Customer token can then be re-used in the future to process subsequent payments. PaymentForm accepts either a Customer or Card token, and will prefer the Customer token if both are provided.

This commit has NOT been refactored to work with the refactoring of December 8, 2011. This code has successfully processed test payments to Stripe but is not in regular production use. I'd like to provide tests and example code of how to use stripe_provider in the context of retrieving a Card token from Stripe via JS and then saving a stripe_provider PaymentForm, but time does not permit that at the moment.

Thank you in advance for any questions or comments -

Dan