Skip to main content

A simple Django app for integrating mpesa stk push payment to your django site.

Project description

Django mpesa is a simple re-usable Django application for mpesa STK push payment, that can be easily intergrated to any django powered site.

Quick start

  1. Add “mpesaApp” to INSTALLED_APPS:

INSTALLED_APPS = {

‘mpesaApp’, ‘django_celery_beat’, ‘rest_framework’

}

  1. Include the mpesaApp URLconf in urls.py:

    path(‘payment/’, include(‘mpesaApp.urls’)),

  2. Run python manage.py migrate to create mpesaApp models and django_celery_beat’s models.

  3. Run the development server and access http://127.0.0.1:8000/admin/ to

    manage setup and add all your payment details.

  4. Access http://127.0.0.1:8000/payment/ to view a json result of payment.

Project details


Download files

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

Source Distribution

DjangoMpesa-2.2.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

DjangoMpesa-2.2-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file DjangoMpesa-2.2.tar.gz.

File metadata

  • Download URL: DjangoMpesa-2.2.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for DjangoMpesa-2.2.tar.gz
Algorithm Hash digest
SHA256 87e4a553305595d97ea785206de816f1c8bf30f4ad18d00d696b5c87406a1bbc
MD5 6311e1de4f6372cc63275074f403d76a
BLAKE2b-256 036b00bc29577868192525121ef10ce227a51f93bb3cc8e591908074a69917c3

See more details on using hashes here.

File details

Details for the file DjangoMpesa-2.2-py3-none-any.whl.

File metadata

  • Download URL: DjangoMpesa-2.2-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for DjangoMpesa-2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 510e1d553da2e792c127d410a2ad14223a3f7aee0d7d2dab687b9baffcf59166
MD5 9a9b4c2ec64100fc212ffe1ea23c735d
BLAKE2b-256 bbf62a603ef4f97d0fcc1ef0a09c752a910cea4e18b24be38235ac4efc0300ec

See more details on using hashes here.

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