Implemention of a ussd -> stk-push mobile payment pipeline with Fastapi, AT-USSD and M-Pesa Express API
- Python3
- Safaricom Developers Account
- M-Pesa Express documentation summary
- Africa's Talking documentation summary
git clone [email protected]:DanNduati/ussd-stkpush.git
cd ussd-stkpush/
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
Create a .env
file similar to .env.example
.
uvicorn app.main:app --reload
cd scripts
./start_ngrok.sh
This should print out your tunnel address and also populate it into your .env file
$ ./start_ngrok.sh
Extracting ngrok public url ...
NGROK_PUBLIC_URL => [ https://d8eb-197-232-61-213.ngrok.io ]
Registered User | Unregistered user |
---|---|
WIP | |
WIP | |
WIP | |
WIP |
NYEWASCO ussd water bill enquiry and payment