django_chapa


Namedjango_chapa JSON
Version 1.4.0 PyPI version JSON
download
home_pagehttps://github.com/abelayalew/django-chapa
SummaryDjango Implementation For Chapa Payment Gateway
upload_time2023-10-02 11:40:04
maintainer
docs_urlNone
authorabelayalew
requires_python>=3.8,<4.0
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/abelayalew/django-chapa",
    "name": "django_chapa",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8,<4.0",
    "maintainer_email": "",
    "keywords": "",
    "author": "abelayalew",
    "author_email": "abelayalew81@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/10/e9/68c3f6e893fbf0d5c80849c84b5224b27dad1ad0d3dc1fe7403339d997ad/django_chapa-1.4.0.tar.gz",
    "platform": null,
    "description": "# Django-Chapa \n\nDjango wrapper for the chapa payment gateway\n\n\n# Instruction\nthis package also includes abstract transaction for chapa\n\n## Installation\n\nrequired python >= 3.6 and django >=3.2 installed\n\n```\npip install django-chapa\n```\n\n## Django Config\nset your config values in `settings.py`\n\n```\nINSTALLED_APPS = [\n    ...\n    'django_chapa',\n    ...\n]\n\nCHAPA_SECRET = \"Secret\"\n\nCHAPA_API_URL = ''\n\nCHAPA_API_VERSION = 'v1'\n\n```\n\nadd webhook url in `urls.py` \n\n```\nurlpatterns = [\n    path('chapa-webhook', include('django_chapa.urls'))\n]\n```\n\n- if you are using default chapa transaction model run `./manage.py migrate`\n\n\nregister your chapa transaction model in    ``settings.py``\n\n```CHAPA_TRANSACTION_MODEL = 'yourapp.chapa_model```\n\n- Note: your chapa transaction model should implement ``django_chapa.models.ChapaTransactionMixin``\n    \n    - or must contain required fields for the webhook to work properly",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Django Implementation For Chapa Payment Gateway",
    "version": "1.4.0",
    "project_urls": {
        "Homepage": "https://github.com/abelayalew/django-chapa",
        "Repository": "https://github.com/abelayalew/django-chapa"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "945381d068811f7263c330051fff772ee3440aff2b2bd35a802b10882e1bb430",
                "md5": "9ef7be0e3135ee83c1a286007150c19f",
                "sha256": "3b27a06ae8869e7bf18ed0721bd7e8118e74ff08aa725b6cb22870970a2aac2e"
            },
            "downloads": -1,
            "filename": "django_chapa-1.4.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9ef7be0e3135ee83c1a286007150c19f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<4.0",
            "size": 8308,
            "upload_time": "2023-10-02T11:40:02",
            "upload_time_iso_8601": "2023-10-02T11:40:02.140661Z",
            "url": "https://files.pythonhosted.org/packages/94/53/81d068811f7263c330051fff772ee3440aff2b2bd35a802b10882e1bb430/django_chapa-1.4.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "10e968c3f6e893fbf0d5c80849c84b5224b27dad1ad0d3dc1fe7403339d997ad",
                "md5": "e82abbdb9b13329c94c0f5cbf7448f80",
                "sha256": "af4591d1168afd465b45b39c44377400fe1a0e499ce785c5561ce11f6b5574e1"
            },
            "downloads": -1,
            "filename": "django_chapa-1.4.0.tar.gz",
            "has_sig": false,
            "md5_digest": "e82abbdb9b13329c94c0f5cbf7448f80",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8,<4.0",
            "size": 5171,
            "upload_time": "2023-10-02T11:40:04",
            "upload_time_iso_8601": "2023-10-02T11:40:04.005453Z",
            "url": "https://files.pythonhosted.org/packages/10/e9/68c3f6e893fbf0d5c80849c84b5224b27dad1ad0d3dc1fe7403339d997ad/django_chapa-1.4.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-02 11:40:04",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "abelayalew",
    "github_project": "django-chapa",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "django_chapa"
}
        
Elapsed time: 0.12298s