Skip to main content

Django Implementation For Chapa Payment Gateway

Project description

Django-Chapa

Django wrapper for the chapa payment gateway

Instruction

this package also includes abstract transaction for chapa

Installation

required python >= 3.6 and django >=3.2 installed

pip install django-chapa

Django Config

set your config values in settings.py

INSTALLED_APPS = [
    ...
    'django_chapa',
    ...
]

CHAPA_SECRET = "Secret"

CHAPA_API_URL = ''

CHAPA_API_VERSION = 'v1'

add webhook url in urls.py

urlpatterns = [
    path('chapa-webhook', include('django_chapa.urls'))
]
  • if you are using default chapa transaction model run ./manage.py migrate

register your chapa transaction model in settings.py

CHAPA_TRANSACTION_MODEL = 'yourapp.chapa_model

  • Note: your chapa transaction model should implement django_chapa.models.ChapaTransactionMixin

    • or must contain required fields for the webhook to work properly

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_chapa-1.4.0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

django_chapa-1.4.0-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file django_chapa-1.4.0.tar.gz.

File metadata

  • Download URL: django_chapa-1.4.0.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.5 Linux/6.1.53-1-MANJARO

File hashes

Hashes for django_chapa-1.4.0.tar.gz
Algorithm Hash digest
SHA256 af4591d1168afd465b45b39c44377400fe1a0e499ce785c5561ce11f6b5574e1
MD5 e82abbdb9b13329c94c0f5cbf7448f80
BLAKE2b-256 10e968c3f6e893fbf0d5c80849c84b5224b27dad1ad0d3dc1fe7403339d997ad

See more details on using hashes here.

File details

Details for the file django_chapa-1.4.0-py3-none-any.whl.

File metadata

  • Download URL: django_chapa-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.5 Linux/6.1.53-1-MANJARO

File hashes

Hashes for django_chapa-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3b27a06ae8869e7bf18ed0721bd7e8118e74ff08aa725b6cb22870970a2aac2e
MD5 9ef7be0e3135ee83c1a286007150c19f
BLAKE2b-256 945381d068811f7263c330051fff772ee3440aff2b2bd35a802b10882e1bb430

See more details on using hashes here.

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