Skip to main content

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

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-mpesa-pay-1.0.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

django_mpesa_pay-1.0-py3-none-any.whl (2.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page