Mpesa api integrated in django
Project description
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 -m pip install django-mpesa-pay
In your django project in your INSTALLED_APPS add the following
INSTALLED_APPS = [
#your apps
"django-mpesa",
]
The go to safaricom 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= **************
#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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django-mpesa-pay-1.0.tar.gz.
File metadata
- Download URL: django-mpesa-pay-1.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b72e4a411dc1589ba59925bcbf6935212512eccd4f0e2bf048bc96d132da0d5
|
|
| MD5 |
d2c118b07a8dfe61a99cfc0ad6917031
|
|
| BLAKE2b-256 |
8808d5d5f9640148635296adf13d97f91a5c10cf3179f77f1b2e0cc1b1e7d030
|
File details
Details for the file django_mpesa_pay-1.0-py3-none-any.whl.
File metadata
- Download URL: django_mpesa_pay-1.0-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
054965af70524bba300a0145ceec539490d72466a36ea7922d112bfb8665a319
|
|
| MD5 |
8e7ed9dfca788571baddb6b6126fc869
|
|
| BLAKE2b-256 |
69dd0c15b36f53f0e5131b207cee1e6f7218c05012a2e32cbcbc1c9e576fa40e
|