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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 2Python 3

File details

Details for the file django_paystack-1.0.0.tar.gz.

File metadata

  • Download URL: django_paystack-1.0.0.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.9

File hashes

Hashes for django_paystack-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a142b78daff6ae53625dfe8f2445b59732ac924d5ff157af506ae049f76a284a
MD5 4eb9d1b55d0cc2d1ecda1a88b8cd543f
BLAKE2b-256 6fd1b0f56d5e1dace2c12efe9fbb9365d0a2010bce270ed33249b8ee184292ee

See more details on using hashes here.

File details

Details for the file django_paystack-1.0.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_paystack-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 bc3b67a5a11e38650f4c32a9a9816a2314c460f3e6a436214274ea8319880fd8
MD5 882620d19d81e4a2459f95fbd0ad8b65
BLAKE2b-256 cc7bc68884a61b60e7d48fe55ee21e62205b0b592911ff2ac078dbbe2bdc1360

See more details on using hashes here.

Supported by

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