Skip to main content

A python library that interfaces safaricoms mpesa apis

Project description

Django-Mpesa is a generic python library that interfaces the safaricom MPESA APIs to enable easy payments to your python application.

Detailed documentation is in the “docs” directory.

Quick start

  1. Add “django-mpesa” to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...
        'django-mpesa',
    ]
  2. Include the polls URLconf in your project urls.py like this:

    from django.urls import path, include
    from mpesa.urls import mpesa_urls
    
    path('mpesa/', include(mpesa_urls)),
  3. Run python manage.py migrate to create the polls models.

  4. Start the development server and visit http://127.0.0.1:8000/admin/

  5. Visit http://127.0.0.1:8000/mpesa/ to checkout the library features.

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

django-mpesa-1.1.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_mpesa-1.1-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file django-mpesa-1.1.tar.gz.

File metadata

  • Download URL: django-mpesa-1.1.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.9

File hashes

Hashes for django-mpesa-1.1.tar.gz
Algorithm Hash digest
SHA256 9c0fb7e3e0663564c99afece421eae73b77b15f0546179f142e93f52a719595f
MD5 3ee35ee4779b89b05741db0f77af6b1c
BLAKE2b-256 97e628e28e04d97925fcff324e985a6a52cdb6162fa6073aa3b12a3f12180479

See more details on using hashes here.

File details

Details for the file django_mpesa-1.1-py3-none-any.whl.

File metadata

  • Download URL: django_mpesa-1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.9 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/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.9

File hashes

Hashes for django_mpesa-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6e4865e1d42816a6099fa7be47f821d71ad7b2601a04765cc84525c5013526e3
MD5 a0eefe5badab782fa6ad98f9ff1734eb
BLAKE2b-256 1826ba4423d73ebfbd3a0082439d68efdd333cbf1b2cc6b7a228885afb52e767

See more details on using hashes here.

Supported by

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