Skip to main content

Django Paystack Payments package

Project description

django_paystack

PyPI version Build Status codecov

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:

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_paystack-1.0.0.tar.gz (10.3 kB view hashes)

Uploaded Source

Built Distribution

django_paystack-1.0.0-py2.py3-none-any.whl (9.3 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page