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.0.tar.gz
(7.9 kB
view hashes)
Built Distribution
DjangoMpesa-2.0-py3-none-any.whl
(10.4 kB
view hashes)
Close
Hashes for DjangoMpesa-2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf102cc02bd090fdba330eee5bbbaef11078e4b8e244afe36aff6e6fb367c2eb |
|
MD5 | 8baa13af78b5178f5ca79b3af311c42d |
|
BLAKE2b-256 | ec9eedb5208b430620af706bed4bef1d1e85529b48b7332a05afa09912414582 |