This is a demo for integrating the M-Pesa api with a Flask application
- python 3
- pipenv:- for managing python dependancies
-
Run the following command to set up dependancies
pipenv install && pipenv shell
-
set up M-Pesa environment variables in a .env file
- FLASK_MPESA_CONSUMER_KEY = < copy paste the key here >
- FLASK_MPESA_CONSUMER_SECRET = < copy paste the secret here >
- FLASK_MPESA_BUSINESS_SHORTCODE = < copy paste the short code here >
- FLASK_MPESA_PASSKEY = < copy paste the passkey here >