Skip to main content

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:

Metadata

Release files for django-paystack 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-paystack 1.0.0
File Size Uploaded
django_paystack-1.0.0.tar.gz 10.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-paystack 1.0.0
File Interpreter ABI Platform
django_paystack-1.0.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 19.5 kB

Release files / django_paystack-1.0.0.tar.gz

Download URL django_paystack-1.0.0.tar.gz
Size 10.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a142b78daff6ae53625dfe8f2445b59732ac924d5ff157af506ae049f76a284a
BLAKE2b-256 checksum
How to use checksums
6fd1b0f56d5e1dace2c12efe9fbb9365d0a2010bce270ed33249b8ee184292ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.9

Release files / django_paystack-1.0.0-py2.py3-none-any.whl

Download URL django_paystack-1.0.0-py2.py3-none-any.whl
Size 9.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
bc3b67a5a11e38650f4c32a9a9816a2314c460f3e6a436214274ea8319880fd8
BLAKE2b-256 checksum
How to use checksums
cc7bc68884a61b60e7d48fe55ee21e62205b0b592911ff2ac078dbbe2bdc1360
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.9

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.2

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page