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
Add “mpesaApp” to INSTALLED_APPS:
INSTALLED_APPS = {
‘mpesaApp’, ‘django_celery_beat’, ‘rest_framework’
}
- Include the mpesaApp URLconf in urls.py:
path(‘payment/’, include(‘mpesaApp.urls’)),
Run python manage.py migrate to create mpesaApp models and django_celery_beat’s models.
- Run the development server and access http://127.0.0.1:8000/admin/ to
manage setup and add all your payment details.
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.1.tar.gz
(7.9 kB
view hashes)
Built Distribution
DjangoMpesa-2.1-py3-none-any.whl
(10.4 kB
view hashes)
Close
Hashes for DjangoMpesa-2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf2804a9244449cebf449d58316228f82b241d03e1bf9af18e807b9657ce6dad |
|
MD5 | e396ab2fce986f5007a828b7f6950b35 |
|
BLAKE2b-256 | 6a891d5c171950c1c8a475f98a8dd0dbf49f5a04dcb9194e2eda23e20aa1d6b3 |