Table of Contents
This project is a cashless payment system intended for public transport in Kenya. It is implemented using Django, Python and SQLite. QR Pay is managed by an admin who creates and posts QR codes with information such as routes and prices. When the QR code is scanned on a mobile phone, it triggers an STK push notification which requests the customer's Mpesa password, thus completing the payment.
- Django
- SQLite
To get this app running on your machine, simply clone the repository and ensure the following prerequisites are all installed.
Have the following prerequisites:
- Python (version 3.90)
- Pip (latest version)
- Django (version 3.2.9)
- Bootstrap 4
-
Clone the repository
git clone https://github.com/GituMbugua/qr-pay.git
-
Create a virtual environment
-
Install requirements
(venv)$ pip install requirements.txt
-
Get your API key from the Safaricom developer portal
-
Add your keys and secrets to a .env file
CONSUMER_KEY=<consumer_key> CONSUMER_SECRET=<consumer_secret> PASSKEY=<passkey>
-
Run the server
(venv)$ python manage.py runserver
Distributed under the MIT License. See LICENSE.txt
for more information.
Gitu Mbugua - gmbugua38@gmail.com
Project Link: https://github.com/GituMbugua/qr-pay