Logo Lanfrica
  • Accueil
  • Atlas
  • Analyses
  • Documentation
  • Sign in

© 2026 Lanfrica. Tous droits réservés. Tous les droits d'auteur des ressources affichées sur le site Web Lanfrica appartiennent aux détenteurs de droits d'auteur d'origine, sauf indication contraire explicite.

Frankie-lii/mpesa-intergration2

Domaine:

digital infrastructure

Type de record:

software
Créateur:
Fra
Hôte:
# M-Pesa STK Push — Quick Start ## 1. Install dependencies ```bash pip install -r requirements.txt ``` ## 2. Set your callback URL in .env Your credentials are already in .env. You just need to add your ngrok URL: ```bash # Terminal 1 — get a public URL ngrok http 8000 # Copy the https URL e.g. abc123.ngrok-free.app # Edit .env and set: # MPESA_CALLBACK_URL=abc123.ngrok-free.app ``` ## 3. Run the server ```bash # Terminal 2 uvicorn main:app --reload --port 8000 ``` ## 4. Open browser Visit: localhost Enter your real Safaricom number → you'll get an M-Pesa PIN prompt on your phone. --- ## Sandbox test number `254708374149` — always succeeds, any PIN ## Files - `main.py` — FastAPI backend (token, STK push, callback, polling) - `static/index.html` — Frontend UI - `.env` — Your credentials (never commit to git)

Visit

github.com

Languages

Lusengo

Similaires

wasksofts/mpesaochom/mpesaPsycadelik/mpesatokelomakafane/mpesatishmalo/mpesamehulsbhatt/mpesa

wasksofts/mpesa

A PHP sdk for the new Mpesa RESTful APIs # Introduction Mpesa library which you can use with variou

ochom/mpesa

All M-Pesa APIs middleman # Mpesa Broker ## Overview ## Running the APP ## Configuration ### En

Psycadelik/mpesa

A demonstration of how to integrate Mpesa Express, C2B, B2C and B2B using the daraja API on safarico

tokelomakafane/mpesa

# M-Pesa OpenAPI Tester — Django App A local developer tool for testing the Vodacom M-Pesa OpenAPI

tishmalo/mpesa

Mpesa package in laravel # Laravel M-Pesa Package A Laravel package for integrating M-Pesa Lipa Na

mehulsbhatt/mpesa

MPESA - Website Integration using Yii