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

a Django app for receiving payment notifications from Coinbase

Getting Started

This is a fairly simple app. It’s three parts:

  1. Webhook View
  2. Model to store the webhook received data
  3. Signal emitted on reciept/validation/storage of webhook data

First off, you’ll want to add django-coinbase to your requirements.txt and pip install it in your virtualenv. Next you’ll want to add coinbase to your INSTALLED_APPS setting of your settings.py file. Lastly, you’ll want to add a urls include to your main urls.py file for coinbase.urls.

There is a signal that you can setup a receiver for in your own project to do something with the callback data:

@receiver(order_received)
def handle_order_received(sender, order, **kwargs):
    pass  # do something with the order object, like enable a feature based on order.custom contents

You will want to set two different settings:

COINBASE_API_KEY

This is the API Key found at: https://coinbase.com/account/integrations

COINBASE_SHARED_SECRET

This is just a random key you make up and store in your settings and add to the querystring of the Instant Payment Notifications field (https://coinbase.com/merchant_settings).

This is the URL of your site + wherever you rooted the urls include + /cb/ followed with the querystring parameter secret followed by the value of this settings.

For example:

# urls.py
url(r"^payments/", include("coinbase.urls"))

# settings.py
COINBASE_SHARED_SECRET = "mysecretsauce"

>>> Site.objects.get_current().domain
example.com

# Your url would be
http://example.com/payments/cb/?secret=mysecretsauce

Development

To run test suite:

$ pip install Django django-nose django-jsonfield mock requests
$ python runtests.py

Commercial Support

This app, and many others like it, have been built in support of many of Eldarion’s own sites, and sites of our clients. We would love to help you on your next project so get in touch by dropping us a note at info@eldarion.com.

Release History

Release History

0.2

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

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
django-coinbase-0.2.tar.gz (5.6 kB) Copy SHA256 Checksum SHA256 Source Jun 17, 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