django-coinbase
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.
Metadata
Release files for django-coinbase 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-coinbase-0.2.tar.gz | 5.6 kB | Without provenance | Details for django-coinbase-0.2.tar.gz |
Release files / django-coinbase-0.2.tar.gz
| Download URL | django-coinbase-0.2.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c78d5387e2f36f7f8ac3f8d7bac600595fb1e2081528cf7f4b93a19fdd7df5bf
|
|
BLAKE2b-256 checksum How to use checksums |
208eac3ed4b30cfa9fa60ecd15dac34a9439d5c7e7ab9f696a62d200ec363f10
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-coinbase 0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.