Package for payment handling via https://www.coinpayments.net
Project description
=============================
django-coinpayments
=============================
.. image:: https://badge.fury.io/py/django-coinpayments.svg
:target: https://badge.fury.io/py/django-coinpayments
.. image:: https://travis-ci.org/Bearle/django-coinpayments.svg?branch=master
:target: https://travis-ci.org/Bearle/django-coinpayments
.. image:: https://codecov.io/gh/Bearle/django-coinpayments/branch/master/graph/badge.svg
:target: https://codecov.io/gh/Bearle/django-coinpayments
Package for payment handling via https://www.coinpayments.net
Screenshots
-----------
.. image:: https://github.com/Bearle/django-coinpayments/blob/master/screenshots/transaction.jpg?raw=true
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
============
* `django >= 1.9 <http://djangoproject.com/>`_
* `django-model-utils >=2.0 <https://github.com/jazzband/django-model-utils>`_
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`:
.. code-block:: python
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:
.. code-block:: python
COINPAYMENTS_API_KEY = 'aaaaa'
COINPAYMENTS_API_SECRET = 'aaa'
Have a look at the `example project <https://github.com/Bearle/django-coinpayments/blob/master/example/example/views.py>`_ 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:
* Cookiecutter_
* `cookiecutter-djangopackage`_
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackage
History
-------
0.1.3 (2018-12-12)
++++++++++++++++++
* Incorporate old fixed (e.g. 65 digits)
0.1.2 (2018-04-26)
++++++++++++++++++
* Made 'id' field on CoinPaymentsTransaction editable
0.1.1 (2018-04-26)
++++++++++++++++++
* Some typo fixes by https://github.com/rubik
0.1.0 (2018-04-06)
++++++++++++++++++
* First release on PyPI.
django-coinpayments
=============================
.. image:: https://badge.fury.io/py/django-coinpayments.svg
:target: https://badge.fury.io/py/django-coinpayments
.. image:: https://travis-ci.org/Bearle/django-coinpayments.svg?branch=master
:target: https://travis-ci.org/Bearle/django-coinpayments
.. image:: https://codecov.io/gh/Bearle/django-coinpayments/branch/master/graph/badge.svg
:target: https://codecov.io/gh/Bearle/django-coinpayments
Package for payment handling via https://www.coinpayments.net
Screenshots
-----------
.. image:: https://github.com/Bearle/django-coinpayments/blob/master/screenshots/transaction.jpg?raw=true
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
============
* `django >= 1.9 <http://djangoproject.com/>`_
* `django-model-utils >=2.0 <https://github.com/jazzband/django-model-utils>`_
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`:
.. code-block:: python
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:
.. code-block:: python
COINPAYMENTS_API_KEY = 'aaaaa'
COINPAYMENTS_API_SECRET = 'aaa'
Have a look at the `example project <https://github.com/Bearle/django-coinpayments/blob/master/example/example/views.py>`_ 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:
* Cookiecutter_
* `cookiecutter-djangopackage`_
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackage
History
-------
0.1.3 (2018-12-12)
++++++++++++++++++
* Incorporate old fixed (e.g. 65 digits)
0.1.2 (2018-04-26)
++++++++++++++++++
* Made 'id' field on CoinPaymentsTransaction editable
0.1.1 (2018-04-26)
++++++++++++++++++
* Some typo fixes by https://github.com/rubik
0.1.0 (2018-04-06)
++++++++++++++++++
* First release on PyPI.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-coinpayments-0.1.3.tar.gz
(14.1 kB
view hashes)
Built Distribution
Close
Hashes for django-coinpayments-0.1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ca0e3f9a831b29da9ceb7c092ae2261fa6ab08812e3e56a61ba26df1d34d305 |
|
MD5 | 66ae1a3be7752682218fc7c01e7e214a |
|
BLAKE2b-256 | 4119648fd78f06448814dd23ab533a07dad29efb649f0f9000fc6884dad2dc31 |
Close
Hashes for django_coinpayments-0.1.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78f9ade9dff3c6bc595e11fe0da2eb84576ef6e6cf99cc48646442cce0dbd0e8 |
|
MD5 | c16099902dd2421433f21b7c19022f67 |
|
BLAKE2b-256 | 44ac767f06f28720a5279515ca67de4cdeb8295ce918fd31ff646ade5f37d207 |