This project is a modern mobile payment application that integrates Safaricom’s M-Pesa Daraja API with a Flutter frontend and a Node.js + Express backend. It delivers a smooth and reliable payment experience by combining powerful backend processing with an intuitive mobile interface.
HEALTH ? 80 / Healthy
// readme
💸 M-Pesa STK Push Flutter App — Powered by Daraja API
This project is a modern mobile payment application that integrates Safaricom’s M-Pesa Daraja API with a Flutter frontend and a Node.js + Express backend.
It allows users to initiate STK Push payments directly from the Flutter app, enabling real-time mobile transactions between customers and businesses in Kenya.
🧠 Project Overview
The app demonstrates how to connect a mobile frontend to the official M-Pesa payment gateway using the Daraja API, making it an ideal foundation for:
- Fintech startups 💰
- E-commerce mobile apps 🛒
- Billing and subscription systems 📱
- School or event payment apps 🎓
It supports token generation, API authorization, and secure payment initiation using STK Push.
🌟 Features
✅ 1. Secure Token Generation
- Uses M-Pesa’s OAuth 2.0 to request an access token securely via Node.js.
✅ 2. STK Push Integration
- Initiates payment directly to a user’s mobile number from the app.
✅ 3. Flutter Frontend
- Simple, clean, and responsive design built using Flutter.
- Includes a one-tap “Pay with M-Pesa” button.
✅ **4. Node.js Backend…