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 hashes)

Uploaded Source

Built Distribution

DjangoMpesa-2.2-py3-none-any.whl (10.4 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