Skip to main content

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.

Release files for django-mpesa-pay 1.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-mpesa-pay 1.0
File Size Uploaded
django-mpesa-pay-1.0.tar.gz 3.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-mpesa-pay 1.0
File Interpreter ABI Platform
django_mpesa_pay-1.0-py3-none-any.whl Python 3 none any Details

Total release size:6.0 kB

Release files / django-mpesa-pay-1.0.tar.gz

Download URL django-mpesa-pay-1.0.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0b72e4a411dc1589ba59925bcbf6935212512eccd4f0e2bf048bc96d132da0d5
BLAKE2b-256 checksum
How to use checksums
8808d5d5f9640148635296adf13d97f91a5c10cf3179f77f1b2e0cc1b1e7d030
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.1

Release files / django_mpesa_pay-1.0-py3-none-any.whl

Download URL django_mpesa_pay-1.0-py3-none-any.whl
Size 2.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
054965af70524bba300a0145ceec539490d72466a36ea7922d112bfb8665a319
BLAKE2b-256 checksum
How to use checksums
69dd0c15b36f53f0e5131b207cee1e6f7218c05012a2e32cbcbc1c9e576fa40e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.1

Release history Release notifications | RSS feed

This release

1.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