Skip to content

jumla-online/mpesa-integration-using-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python - M-Pesa Integration Project

This project demonstrates how to integrate the M-Pesa API into Python applications for seamless mobile payment processing. M-Pesa is a mobile money service offered by Safaricom in Kenya, allowing users to transfer money, pay bills, and more, directly from their mobile phones.

Overview

The M-Pesa API provides developers with various endpoints for initiating transactions, querying transaction status, and managing accounts. This project focuses on leveraging the M-Pesa Daraja API, which offers a straightforward and secure way to integrate M-Pesa functionality into Python applications.

Features

  • Generate access tokens for authentication
  • Initiate payment requests (STK push)
  • Receive and handle transaction callbacks
  • Query transaction status
  • Manage account balances and statements

Getting Started

To get started with this project, clone the repository and follow the setup instructions provided in the documentation. Ensure you have the necessary credentials from Safaricom Developer Portal to authenticate API requests.

Dependencies

  • Python 3.x
  • Requests library
  • Flask framework (optional for building web applications)
  • M-Pesa Developer Account

Usage

# Example usage of M-Pesa API integration
# Insert code snippets and usage instructions here

Contributing

Contributions are welcome! If you have any ideas for improvements or new features, please open an issue or submit a pull request.

License

This project is licensed under the MIT License.


Feel free to customize the introduction to match the specifics of your project and provide any additional information or instructions as needed.

About

" M-Pesa integration using Python!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages