summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPatryk Zawadzki <patrys@room-303.com>2013-11-08 08:59:17 -0800
committerPatryk Zawadzki <patrys@room-303.com>2013-11-08 08:59:17 -0800
commit752d24319ee50fb758b044cc0c4c9275c0f126a7 (patch)
tree0041e1d001142e8ce39c081c3176220317004e69 /doc
parente9d0fceeea4ad8d24888a4ca2816cc672e70fce8 (diff)
parentfd631efb29f817deec1d0576b3061dc4b116b83c (diff)
downloaddjango-payments-taler-752d24319ee50fb758b044cc0c4c9275c0f126a7.tar.gz
django-payments-taler-752d24319ee50fb758b044cc0c4c9275c0f126a7.tar.bz2
django-payments-taler-752d24319ee50fb758b044cc0c4c9275c0f126a7.zip
Merge pull request #25 from mirumee/features/stripe
Add Stripe as a payment method
Diffstat (limited to 'doc')
-rw-r--r--doc/modules.rst29
1 files changed, 29 insertions, 0 deletions
diff --git a/doc/modules.rst b/doc/modules.rst
index f33b434..599af57 100644
--- a/doc/modules.rst
+++ b/doc/modules.rst
@@ -154,3 +154,32 @@ Example::
'encryption_key': '1234567890abcdef',
'endpoint': 'https://test.sagepay.com/Simulator/VSPFormGateway.asp'})}
+
+Stripe
+-------------
+
+.. class:: payments.stripe.StripeProvider(secret_key, public_key)
+
+ This backend implements payments using `Stripe <https://stripe.com/>`_.
+
+ :param secret_key: Secret key assigned by Stripe.
+ :param public_key: Public key assigned by Stripe.
+
+Example::
+
+ # use sandbox
+ PAYMENT_VARIANTS = {
+ 'stripe': ('payments.stripe.StripeProvider', {
+ 'secret_key': 'sk_test_123456',
+ 'public_key': 'pk_test_123456'})}
+
+This backend requires js files that should be added to the template using ``{{ form.media }}`` e.g:
+
+.. code-block:: html
+
+ <!-- templates/payment.html -->
+ <form action="{{ form.action }}" method="{{ form.method }}">
+ {{ form.as_p }}
+ <p><input type="submit" value="Proceed" /></p>
+ </form>
+ {{ form.media }}