No project description provided
Project description
a Django app for receiving payment notifications from Coinbase
Getting Started
This is a fairly simple app. It’s three parts:
Webhook View
Model to store the webhook received data
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
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-coinbase-0.1.tar.gz
.
File metadata
- Download URL: django-coinbase-0.1.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b6867da6f42d25ef9867dc5e2d73e5854101697bf174f8c1e1bef60e8b8d37d |
|
MD5 | cf796a0b2ac1deae4b8f5bf6895c842c |
|
BLAKE2b-256 | 06932e1c03c984d5bc3e56d09b9ef1692d1fc724555460a6abd1fc787c33b3bc |