The models and management commands should work without any additional requirements, but if you want to use the templates, especially the templates involving forms that ship with this app, then you will need django-forms-bootstrap and eldarion-ajax.

Add django-forms-bootstrap to your project:

pip install django-forms-bootstrap

You will also want to add django_forms_bootstrap to your INSTALLED_APPS`:


Add eldarion-ajax.js to your base template. eldarion-ajax is a library used by the included templates to interact with the ajax views. You can certainly write your own javascript, but it is likely easier for you to just include the library.

Get it here: eldarion-ajax


  • To install

    pip install django-stripe-payments
  • Add 'payments' to your INSTALLED_APPS setting:

  • Add 'payments' to your

    urlpatterns = patterns("",
        url(r"^payments/", include("payments.urls")),

Configuration (Modifications to

  • Add entries to for your publishable and secret keys. The recommended method is to setup your production keys using environment variables. This helps to keep them more secure. Your test keys can be displayed in your code directly.

    The following entries look for your STRIPE_PUBLIC_KEY and STRIPE_SECRET_KEY in your environment and, if it can’t find them, uses your test keys values instead:

    STRIPE_PUBLIC_KEY = os.environ.get("STRIPE_PUBLIC_KEY", "<your publishable test key>")
    STRIPE_SECRET_KEY = os.environ.get("STRIPE_SECRET_KEY", "<your secret test key>")
  • Setup your payment plans by defining the setting PAYMENTS_PLANS:

        "monthly": {
            "stripe_plan_id": "pro-monthly",
            "name": "Web App Pro ($25/month)",
            "description": "The monthly subscription plan to WebApp",
            "price": 25,
            "currency": "usd",
            "interval": "month"
        "yearly": {
            "stripe_plan_id": "pro-yearly",
            "name": "Web App Pro ($199/year)",
            "description": "The annual subscription plan to WebApp",
            "price": 199,
            "currency": "usd",
            "interval": "year"
        "monthly-trial": {
            "stripe_plan_id": "pro-monthly-trial",
            "name": "Web App Pro ($25/month with 30 days free)",
            "description": "The monthly subscription plan to WebApp",
            "price": 25,
            "currency": "usd",
            "interval": "month",
            "trial_period_days": 30
  • If you’re using Stripe to send email receipts for you, set SEND_EMAIL_RECEIPTS = False (and configure your emails from your Stripe Account Settings). Alternatively payments can send them for you - you’ll want to set PAYMENTS_INVOICE_FROM_EMAIL to the email address that your receipts will be sent from.

Static Media

The included templates have been tested to work with Checkout.

An example of integrating Checkout is to put this in your base template:

<script src="//"></script>
    $(function() {
        $('body').on("click", '.change-card, .subscribe-form button[type=submit]', function(e) {
          var $form = $(this).closest("form"),
              token = function(res) {

            key:         $"stripe-key"),
            name:        'Payment Method',
            panelLabel:  'Add Payment Method',
            token:       token

          return false;