django-coinpayments
Package for payment handling via https://www.coinpayments.net
Screenshots
Features
- Has full Coinpayments API client based on .. This one: https://github.com/DogFive/pyCoinPayments
- Has celery, cron tasks for transaction status updates
- Provides a simple create_tx method
- Multiple accepted coins can be set using COINPAYMENTS_ACCEPTED_COINS variable in settings.py
Dependencies
Documentation
The full documentation is at https://django-coinpayments.readthedocs.io.
Quickstart
Install django-coinpayments:
pip install django-coinpayments
Add it to your INSTALLED_APPS:
INSTALLED_APPS = (
...
'django_coinpayments',
...
)
Run migrate
:
python manage.py migrate django_coinpayments
Important!
You have to provide API keys with create_transaction, get_tx_info permissions like this in your settings.py:
COINPAYMENTS_API_KEY = 'aaaaa'
COINPAYMENTS_API_SECRET = 'aaa'
Have a look at the example project to see usage examples. As for now, the example project views cover creating new transactions, viewing payments and coinpayments transactions, creating new payments using modelforms and creating new coinpayments transactions instead of the old one's (if the payment was filled partially)
Running Tests
Does the code actually work?
source <YOURVIRTUALENV>/bin/activate (myenv) $ pip install tox (myenv) $ tox
Credits
Tools used in rendering this package: