Skip to main content

a django app with mpesa express integration

Project description

An app that integrates Mpesa Express into Django.

Quick start

  1. Add “express” to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        "express",
    ]
  2. Update the config settings for Mpesa:

    # Mpesa configurations
    MPESA_CONSUMER_SECRET=
    MPESA_ACCESS_TOKEN_URL=
    MPESA_CONSUMER_KEY=
    MPESA_SHORT_CODE=
    MPESA_STK_PUSH_URL=
    MPESA_API_KEY=
    MPESA_CALLBACK_URL=
    BASE_URL=
  3. Include the express URLs in your project’s URLs like this:

    url(r'^express/', include('express.urls')),
  4. Run the following command to create the express models:

    python manage.py migrate
  5. Start the development server and visit http://127.0.0.1:8000 to use the endpoints:

    express/checkout

Project details


Release history Release notifications | RSS feed

This version

0.1

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-express-0.1.tar.gz (6.2 kB view details)

Uploaded Source

File details

Details for the file django-mpesa-express-0.1.tar.gz.

File metadata

  • Download URL: django-mpesa-express-0.1.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.14

File hashes

Hashes for django-mpesa-express-0.1.tar.gz
Algorithm Hash digest
SHA256 f705e685b7ba07739b868c6f1aafc38fb0cf9da65246bb2f269f2c0c259696b6
MD5 bf64594440ebfa80383de41fe4327092
BLAKE2b-256 a0cbcd346682de9a18e182a44a9b51f6d6acc967bbd4c2c8c6aa5f7ac59c1aa8

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