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

djbraintree easily integrates the official Braintree Python client library into your Django applications by allowing easy configuration from your Django settings.

Quick start

  1. Install djbraintree from PyPI:

    $ pip install djbraintree
    
  2. Update your project’s settings.py:

    INSTALLED_APPS = (
        ..
        'django_barintree',
    )
    
    TEMPLATE_CONTEXT_PROCESSORS = (
        ..
        'djbraintree.context_processsors.braintree_client_side_encryption_key',
    )
    
    import braintree
    
    BRAINTREE_ENVIRONMENT = braintree.Environment.Sandbox
    BRAINTREE_CLIENT_SIDE_ENCRYPTION_KEY = '..'
    BRAINTREE_MERCHANT_ID = '..'
    BRAINTREE_PUBLIC_KEY = '..'
    BRAINTREE_PRIVATE_KEY = '..'
    
  3. Start using the Braintree Python client library in your code:

    import braintree
    
    result = braintree.Transaction.sale({
        "amount": "1000.00",
        "credit_card": {
            "number": "4111111111111111",
            "expiration_date": "05/2012"
        }
    })
    

Configuration options

BRAINTREE_ENVIRONMENT
Braintree environment. Refer to the Braintree Python client library documentation for more details.
BRAINTREE_CLIENT_SIDE_ENCRYPTION_KEY
Optional client side encryption key. Will be exposed using the braintree_client_side_encryption_key context processor as BRAINTREE_CLIENT_SIDE_ENCRYPTION_KEY in your templates if set.
BRAINTREE_MERCHANT_ID
Merchant ID.
BRAINTREE_PUBLIC_KEY
Public key.
BRAINTREE_PRIVATE_KEY
Private key.
BRAINTREE_USE_UNSAFE_SSL
Allow unsafe SSL connections. Default False and highly discouraged.
Release History

Release History

0.1.0

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

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
djbraintree-0.1.0.tar.gz (2.5 kB) Copy SHA256 Checksum SHA256 Source Mar 7, 2013

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