Skip to main content

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

Metadata

Release files for django_chapa 1.4.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_chapa 1.4.0
File Size Uploaded
django_chapa-1.4.0.tar.gz 5.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django_chapa 1.4.0
File Interpreter ABI Platform
django_chapa-1.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 13.5 kB

Release files / django_chapa-1.4.0.tar.gz

Download URL django_chapa-1.4.0.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
af4591d1168afd465b45b39c44377400fe1a0e499ce785c5561ce11f6b5574e1
BLAKE2b-256 checksum
How to use checksums
10e968c3f6e893fbf0d5c80849c84b5224b27dad1ad0d3dc1fe7403339d997ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.11.5 Linux/6.1.53-1-MANJARO

Release files / django_chapa-1.4.0-py3-none-any.whl

Download URL django_chapa-1.4.0-py3-none-any.whl
Size 8.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3b27a06ae8869e7bf18ed0721bd7e8118e74ff08aa725b6cb22870970a2aac2e
BLAKE2b-256 checksum
How to use checksums
945381d068811f7263c330051fff772ee3440aff2b2bd35a802b10882e1bb430
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.11.5 Linux/6.1.53-1-MANJARO

Release history Release notifications | RSS feed

This release

1.4.0 This release

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