Skip to content

Latest commit

 

History

History
53 lines (35 loc) · 1.76 KB

README.md

File metadata and controls

53 lines (35 loc) · 1.76 KB

Automatic USSD Billing Script

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.

Features

  • 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.

Prerequisites

  • Android device with ADB enabled.
  • ADB installed on your computer.
  • Basic knowledge of Python.

Installation

  1. Install ADB: Follow the instructions to install ADB on your operating system from the official documentation.

  2. Clone the repository:

    git clone https://github.com/yourusername/ussd-billing-script.git
    cd ussd-billing-script
  3. Connect your Android device: Connect your Android device via USB and enable USB debugging.

  4. Run the Script:

    python ussd_billing_script.py

Usage

  1. Run the Script: Execute the script using Python.
    python ussd_billing_script.py
  2. Enter your M-Pesa PIN: When prompted, enter your M-Pesa PIN to authorize the transaction.

Demonstration Video

ussd-billing-demo.mp4

License

This project is licensed under the MIT License - see the LICENSE file for details.