You are here

README.txt in Ubercart Stripe 6

This is an Ubercart payment gateway module for Stripe.

It includes integration with the Ubercart Recurring Payments
module for subscriptions.

Currently this module is only compatible with Drupal 6.
Support for Drupal 7 planned, but not yet started.

!! IMPORTANT !!
===============

This module is a work in progress and as such has not been
extensively tested in a production environment. DO NOT INSTALL
THIS IN A PRODUCTION ENVIRONMENT. If you want to help test,
please do, but do not use it for anything mission critical
until it has been tested further.

Installation and Setup
======================

a) Install and enable the module in the normal way for Drupal.

b) Visit your Ubercart Store Administration page, Configuration
section, and enable the gateway under the Payment Gateways.
(admin/store/settings/payment/edit/gateways)

c) On this page, provide the following settings:
   - Your Stripe API key, private

d) Download and install the latest version of the PHP Stripe
library (https://github.com/stripe/stripe-php. Put it in
sites/all/libraries/stripe such that the path to Stripe.php
is sites/all/libraries/stripe/lib/Stripe.php

e) If you are using recurring payments, install version 2.x
of the Ubercart Recurring module:
http://drupal.org/project/uc_recurring
and set up as described below


Recurring Payments Setup
========================

First, you'll need the Ubercart Recurring module:
http://drupal.org/project/uc_recurring installed. It is not
listed as a dependency for this Stripe payment module because
this module could be used without recurring payments.
But it is a dependency to use the recurring payments piece of
this module.

Create a product in your Drupal site. After creating that
product, edit it and click on the "Features" tab. Under
"Add a new feature," select "Recurring fee" and click add.
In order for this to work with Stripe, you must select the
"Applicable SKU." This will create the subscription plan in
Stripe (provided of course that you have your API keys set up).
Then, later, when a user purchases this product, they will get
added as "Customers" to this "Plan."

Notes:

- Stripe doesn't have a way to set the number of billing periods.
So basically people are subscribed or unsubscribed, not
subscribed for 12 months then done. We hope to add the
ability to change this later, but we would have to do it
on our end. So for example, we would have to keep track of
the time since the subscription started in Drupal and send
Stripe a request when that time is up.


Todo
====
- Enable set number of billing periods. So the system will
keep track of the time and then shoot of a request to Stripe
via cron to cancel the subscription once the billing period is up.

File

README.txt
View source
  1. This is an Ubercart payment gateway module for Stripe.
  2. It includes integration with the Ubercart Recurring Payments
  3. module for subscriptions.
  4. Currently this module is only compatible with Drupal 6.
  5. Support for Drupal 7 planned, but not yet started.
  6. !! IMPORTANT !!
  7. ===============
  8. This module is a work in progress and as such has not been
  9. extensively tested in a production environment. DO NOT INSTALL
  10. THIS IN A PRODUCTION ENVIRONMENT. If you want to help test,
  11. please do, but do not use it for anything mission critical
  12. until it has been tested further.
  13. Installation and Setup
  14. ======================
  15. a) Install and enable the module in the normal way for Drupal.
  16. b) Visit your Ubercart Store Administration page, Configuration
  17. section, and enable the gateway under the Payment Gateways.
  18. (admin/store/settings/payment/edit/gateways)
  19. c) On this page, provide the following settings:
  20. - Your Stripe API key, private
  21. d) Download and install the latest version of the PHP Stripe
  22. library (https://github.com/stripe/stripe-php. Put it in
  23. sites/all/libraries/stripe such that the path to Stripe.php
  24. is sites/all/libraries/stripe/lib/Stripe.php
  25. e) If you are using recurring payments, install version 2.x
  26. of the Ubercart Recurring module:
  27. http://drupal.org/project/uc_recurring
  28. and set up as described below
  29. Recurring Payments Setup
  30. ========================
  31. First, you'll need the Ubercart Recurring module:
  32. http://drupal.org/project/uc_recurring installed. It is not
  33. listed as a dependency for this Stripe payment module because
  34. this module could be used without recurring payments.
  35. But it is a dependency to use the recurring payments piece of
  36. this module.
  37. Create a product in your Drupal site. After creating that
  38. product, edit it and click on the "Features" tab. Under
  39. "Add a new feature," select "Recurring fee" and click add.
  40. In order for this to work with Stripe, you must select the
  41. "Applicable SKU." This will create the subscription plan in
  42. Stripe (provided of course that you have your API keys set up).
  43. Then, later, when a user purchases this product, they will get
  44. added as "Customers" to this "Plan."
  45. Notes:
  46. - Stripe doesn't have a way to set the number of billing periods.
  47. So basically people are subscribed or unsubscribed, not
  48. subscribed for 12 months then done. We hope to add the
  49. ability to change this later, but we would have to do it
  50. on our end. So for example, we would have to keep track of
  51. the time since the subscription started in Drupal and send
  52. Stripe a request when that time is up.
  53. Todo
  54. ====
  55. - Enable set number of billing periods. So the system will
  56. keep track of the time and then shoot of a request to Stripe
  57. via cron to cancel the subscription once the billing period is up.