# django-mpesa
This is a django package that provides access to all safaricom plc mpesa endpoints.
It has all mpesa endpoint that has the latest changes to the mpesa api endpoint in compliance to kenya data protection act.
## Installation
Type the command below to install the package in your environemnt variable
```python
python -m pip install django-mpesa-pay
```
In your django project in your **INSTALLED_APPS** add the following
```python
INSTALLED_APPS = [
#your apps
"django-mpesa",
]
```
The go to [safaricom](https://developer.safaricom.co.ke/) and create your account so that you can have access to mpesa sandbox for testing your mpesa credential.
From safaricom you will get the following credentials
passkey= **************
```python
#settings.py
PASS_KEY = ********* #your passkey from safaricom
ACCOUNT_REFERENCE = "name of your app"
BUSINESS_SHORT_CODE = #your till number
```
NB: Remember to save your PASS_KEY and ACCESS TOKENS in an environment variables in production.
Raw data
{
"_id": null,
"home_page": "https://christophergathuthi.com",
"name": "django-mpesa-pay",
"maintainer": "christopher",
"docs_url": null,
"requires_python": "",
"maintainer_email": "chris@gmail.com",
"keywords": "django mpesa safaricom",
"author": "christopher",
"author_email": "my@email.com",
"download_url": "https://files.pythonhosted.org/packages/88/08/d5d5f9640148635296adf13d97f91a5c10cf3179f77f1b2e0cc1b1e7d030/django-mpesa-pay-1.0.tar.gz",
"platform": null,
"description": "# django-mpesa\r\n\r\nThis is a django package that provides access to all safaricom plc mpesa endpoints.\r\nIt has all mpesa endpoint that has the latest changes to the mpesa api endpoint in compliance to kenya data protection act.\r\n\r\n## Installation\r\n\r\nType the command below to install the package in your environemnt variable\r\n\r\n```python\r\npython -m pip install django-mpesa-pay\r\n```\r\n\r\nIn your django project in your **INSTALLED_APPS** add the following\r\n\r\n```python\r\nINSTALLED_APPS = [\r\n #your apps\r\n \"django-mpesa\",\r\n]\r\n```\r\n\r\nThe go to [safaricom](https://developer.safaricom.co.ke/) and create your account so that you can have access to mpesa sandbox for testing your mpesa credential.\r\n\r\nFrom safaricom you will get the following credentials\r\npasskey= **************\r\n\r\n```python\r\n#settings.py \r\nPASS_KEY = ********* #your passkey from safaricom \r\nACCOUNT_REFERENCE = \"name of your app\"\r\nBUSINESS_SHORT_CODE = #your till number\r\n```\r\n\r\nNB: Remember to save your PASS_KEY and ACCESS TOKENS in an environment variables in production.\r\n\r\n\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Mpesa api integrated in django",
"version": "1.0",
"split_keywords": [
"django",
"mpesa",
"safaricom"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "69dd0c15b36f53f0e5131b207cee1e6f7218c05012a2e32cbcbc1c9e576fa40e",
"md5": "8e7ed9dfca788571baddb6b6126fc869",
"sha256": "054965af70524bba300a0145ceec539490d72466a36ea7922d112bfb8665a319"
},
"downloads": -1,
"filename": "django_mpesa_pay-1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "8e7ed9dfca788571baddb6b6126fc869",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 2686,
"upload_time": "2023-03-24T18:28:37",
"upload_time_iso_8601": "2023-03-24T18:28:37.090173Z",
"url": "https://files.pythonhosted.org/packages/69/dd/0c15b36f53f0e5131b207cee1e6f7218c05012a2e32cbcbc1c9e576fa40e/django_mpesa_pay-1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "8808d5d5f9640148635296adf13d97f91a5c10cf3179f77f1b2e0cc1b1e7d030",
"md5": "d2c118b07a8dfe61a99cfc0ad6917031",
"sha256": "0b72e4a411dc1589ba59925bcbf6935212512eccd4f0e2bf048bc96d132da0d5"
},
"downloads": -1,
"filename": "django-mpesa-pay-1.0.tar.gz",
"has_sig": false,
"md5_digest": "d2c118b07a8dfe61a99cfc0ad6917031",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3309,
"upload_time": "2023-03-24T18:28:38",
"upload_time_iso_8601": "2023-03-24T18:28:38.631463Z",
"url": "https://files.pythonhosted.org/packages/88/08/d5d5f9640148635296adf13d97f91a5c10cf3179f77f1b2e0cc1b1e7d030/django-mpesa-pay-1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-03-24 18:28:38",
"github": false,
"gitlab": false,
"bitbucket": false,
"lcname": "django-mpesa-pay"
}