Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.rst

cartridge-stripe

Stripe credit card processing integration with Cartridge.

Install

Follow the installation instructions of django-zebra.

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

About

Stripe integration with Cartridge.

Resources

License

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.