Skip to main content

Stripe credit card processing integration with Cartridge

Project description

cartridge-stripe
================

Stripe_ credit card processing integration with Cartridge_.

.. _Cartridge: htps://cartridge.jupo.org
.. _Stripe: https://stripe.com/docs

==========
Install
==========

Follow the installation instructions of django-zebra_.

.. _django-zebra: https://github.com/GoodCloud/django-zebra#installation

::

pip install cartridge-stripe

Update the settings.py to use your shiney new app.
Add it to 'INSTALLED_APPS' above 'cartridge.shop' to override the checkout template
or copy it to the templates dir in your project.

::

INSTALLED_APPS = (
# ...
'cartridge_stripe',
'cartridge.shop',
# More stuff...
'zebra',
)


SHOP_HANDLER_PAYMENT = 'cartridge_stripe.payment_handler'
SHOP_CHECKOUT_FORM_CLASS = 'cartridge_stripe.forms.OrderForm'

ZEBRA_ENABLE_APP = True


=======
Style
=======

Add some sort of style for 'div.payment-errors' which will display validation
errors from stripe.

::

div.payment-errors {
color: #F00;
}


=====
Done!
=====

Now your checkout flow should have card validation and the Stripe order number
linked to the purchase.

=====
Feedback
=====

I'm open to bugs and pull requests. Just run pep8 first.
Follow me and say hi! https://twitter.com/readevalprint

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for cartridge-stripe, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size cartridge-stripe-0.1.3.tar.gz (6.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page