This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Installation

  • Install django_braintree (ideally in your virtualenv!) using pip or simply getting a copy of the code and putting it in a directory in your codebase.

    pip install tivix-django-braintree

  • Add django_braintree to your Django settings INSTALLED_APPS:

        INSTALLED_APPS = [
        # ...
        "django_braintree",
    ]
    
  • Add these lines in settings.py file:

    BRAINTREE_MERCHANT = 'your_merchant_key'
    BRAINTREE_PUBLIC_KEY = 'your_public_key'
    BRAINTREE_PRIVATE_KEY = 'your_private_key'
    
    from braintree import Configuration, Environment
    
    Configuration.configure(
        Environment.Sandbox,
        BRAINTREE_MERCHANT,
        BRAINTREE_PUBLIC_KEY,
        BRAINTREE_PRIVATE_KEY
    )
    
  • Add url to urls.py:

    url(r'', include('django_braintree.urls')),
    
  • If you’re using South for schema migrations run python manage.py migrate django_braintree or simply do a syncdb.

Additional Information

  • Braintree uses default templates:

    django_braintree/payments_billing.html
    django_braintree/fragments/cc_form.html
    django_braintree/fragments/current_cc_info.html
    django_braintree/fragments/pay.html
    django_braintree/fragments/payments_billing.html
    
  • Braintree requires including the js from django_common that enables ajax forms etc. django_common is available at https://github.com/Tivix/django-common

  • If a template variable cc_form_post_url is passed to the template then this form posts to it, otherwise it posts to the url payments_billing.

  • If a template variable cc_form_success_redirect_url is passed it takes user to that url then after form post has succeeded.

  • Braintree is set up to sandbox mode at default. To change this you must switch Environment.Sandbox to Environment.Production in settings file.

Revision History

  • v0.1.2 Changed urls.py to be compatible with Django 1.4+
  • v0.1.3 Changed urls.py to be compatible with Django 1.5+

This opensource app is brought to you by Tivix, Inc. ( http://tivix.com/ )

Release History

Release History

0.1.3

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.2

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
tivix-django-braintree-0.1.3.tar.gz (6.4 kB) Copy SHA256 Checksum SHA256 Source Jan 7, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting