This project is an automatic USSD billing script that utilizes Android's ADB (Android Debug Bridge) to automate the process of making payments via USSD codes. The script interacts with the M-Pesa service to complete transactions without manual input.
- Automatically dials a USSD code to initiate the payment process.
- Navigates through the M-Pesa menu options to reach the "Buy Goods and Services" option.
- Inputs the required till number, amount, and PIN for the transaction.
- Confirms the transaction and displays a confirmation message.
- Android device with ADB enabled.
- ADB installed on your computer.
- Basic knowledge of Python.
-
Install ADB: Follow the instructions to install ADB on your operating system from the official documentation.
-
Clone the repository:
git clone https://github.com/yourusername/ussd-billing-script.git cd ussd-billing-script
-
Connect your Android device: Connect your Android device via USB and enable USB debugging.
-
Run the Script:
python ussd_billing_script.py
- Run the Script: Execute the script using Python.
python ussd_billing_script.py
- Enter your M-Pesa PIN: When prompted, enter your M-Pesa PIN to authorize the transaction.
ussd-billing-demo.mp4
This project is licensed under the MIT License - see the LICENSE file for details.