Django Paystack Payments package
Project description
django_paystack
Django Paystack Payments package
Documentation
The full documentation is at https://django_paystack.readthedocs.io.
Quickstart
Install django_paystack:
pip install django_paystack
Add it to your INSTALLED_APPS
:
INSTALLED_APPS = (
...
'django_paystack',
...
)
Then in your settings.py file, create the following settings:
PAYSTACK_SETTINGS = {
"PUBLIC_KEY": "pk_test_xxx",
"SECRET_KEY": "sk_test_xxx",
"CURRENCY": "NGN",
"BUTTON_CLASS": "",
"BUTTON_ID": "django-paystack-button",
"SUCCESS_URL": "paystack:success_page",
"FAILURE_URL": "paystack:failure_page",
}
Add django_paystack's URL patterns:
urlpatterns = [
...
path("paystack/", include(('django_paystack.urls','paystack'),namespace='paystack')),
...
]
Features
- TODO
Running Tests
Does the code actually work?
source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ tox
Development commands
pip install -r requirements_dev.txt
invoke -l
Credits
Tools used in rendering this package:
- Based on the work of pypaystack2
- Inspiration from gbozee/pypaystack
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
django_paystack-1.0.0.tar.gz
(10.3 kB
view hashes)
Built Distribution
Close
Hashes for django_paystack-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc3b67a5a11e38650f4c32a9a9816a2314c460f3e6a436214274ea8319880fd8 |
|
MD5 | 882620d19d81e4a2459f95fbd0ad8b65 |
|
BLAKE2b-256 | cc7bc68884a61b60e7d48fe55ee21e62205b0b592911ff2ac078dbbe2bdc1360 |