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.2.tar.gz
(7.9 kB
view hashes)
Built Distribution
DjangoMpesa-2.2-py3-none-any.whl
(10.4 kB
view hashes)
Close
Hashes for DjangoMpesa-2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 510e1d553da2e792c127d410a2ad14223a3f7aee0d7d2dab687b9baffcf59166 |
|
MD5 | 9a9b4c2ec64100fc212ffe1ea23c735d |
|
BLAKE2b-256 | bbf62a603ef4f97d0fcc1ef0a09c752a910cea4e18b24be38235ac4efc0300ec |