<commit_before>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

add to 'INSTALLED_APPS' above 'cartridge.shop' to override the checkout template
or copy it to your templates dir.

::

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


Update the `SHOP_HANDLER_PAYMENT` to use your shiney new app.

::

    SHOP_HANDLER_PAYMENT = "cartridge_stripe.payment_handler"

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

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

::

    div.payment-errors {
        color: #F00;
    }<commit_msg>Update README.rst<commit_after>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...
        )


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

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

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

::

    div.payment-errors {
        color: #F00;
    }
{'fraction_non_alphanumeric': 0.1398283695103483, 'fraction_numerical': 0.0020191822311963654, 'mean_word_length': 3.299349240780911, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2160920', 'n_tokens_mistral': 671, 'n_tokens_neox': 608, 'n_words': 157}