django-chapa-1.0.4
توضیحات
Unofficial Django Implementation For Chapa Payment Gateway
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | django-chapa-1.0.4 |
| نام | django-chapa |
| نسخه کتابخانه | 1.0.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | abelayalew |
| ایمیل نویسنده | abelayalew81@gmail.com |
| آدرس صفحه اصلی | https://github.com/abelayalew/django-chapa |
| آدرس اینترنتی | https://pypi.org/project/django-chapa/ |
| مجوز | MIT |
# 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
نیازمندی
| مقدار | نام |
|---|---|
| >=4.1,<5.0 | Django |
| >=2.28.1,<3.0.0 | requests |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8,<4.0 | Python |
نحوه نصب
نصب پکیج whl django-chapa-1.0.4:
pip install django-chapa-1.0.4.whl
نصب پکیج tar.gz django-chapa-1.0.4:
pip install django-chapa-1.0.4.tar.gz