Logo Lanfrica
  • Home
  • Atlas
  • Insights
  • Docs
  • Sign in

© 2026 Lanfrica. All rights reserved. All copyrights of the resources shown on the Lanfrica website belong to the original copyright holders, unless explicitly stated otherwise.

2010Havillah/Mama-havillah-Mpesa-backend

Domain:

digital infrastructure

Record type:

software
Creator:
201
Host:
# Mama Havillah Global M-Pesa Backend This is a Node.js/Express backend for M-Pesa STK Push integration using Safaricom Daraja API. ## Features - /api/mpesa/stkpush: Initiate STK Push - /api/mpesa/callback: Receive payment result - CORS enabled - Environment variables for credentials ## Setup 1. Copy .env.example to .env and fill in your Daraja API credentials. 2. Run `npm install` to install dependencies. 3. Start the server with `node server.js` or `npm start`. ## Deployment - Ready for Render or Heroku. See below for step-by-step instructions. ### Render Deployment 1. Create a free account at render.com 2. Create a new Web Service, connect your repo or upload code 3. Set environment variables: CONSUMER_KEY, CONSUMER_SECRET, PASSKEY 4. Deploy and use your public URL in your frontend ### Heroku Deployment 1. Install Heroku CLI 2. Run `heroku create` 3. Set environment variables: `heroku config:set CONSUMER_KEY=... CONSUMER_SECRET=... PASSKEY=...` 4. Push code: `git push heroku main` 5. Use your Heroku app URL in your frontend ## API Endpoints - POST /api/mpesa/stkpush - POST /api/mpesa/callback ## Example .env ``` CONSUMER_KEY=your_consumer_key CONSUMER_SECRET=your_consumer_secret PASSKEY=your_passkey ``` ## Notes - Use HTTPS for production - Check backend logs for troubleshooting git init git add . git commit -m "Initial M-Pesa backend setup" git --version git remote add origin github.com git branch -M main git push -u origin main

Visit

github.com

Languages

Lusengo

Similar

Koluoch22/mpesa-backendwilfredeveloper/mpesa-ai-backendsmartvaulttech32-hub/mpesa-backendFeloh-dotcom/mpesa-cloud-backendDavid-IT2/mpesa-stk-push-BackendMbote-Joseph/Mpesa-Daraja-API-integration-Backend---NodeJS

Koluoch22/mpesa-backend

Secure Node.js backend for handling M-Pesa STK Push payments via Safaricom Daraja API, integrated wi

wilfredeveloper/mpesa-ai-backend

# AI M-Pesa Payment Agent An AI-powered FastAPI server with CLI interface that can process M-Pesa p

smartvaulttech32-hub/mpesa-backend

M-Pesa STK Push backend for Marketplace Kenya # mpesa-backend M-Pesa STK Push backend for Marketpla

Feloh-dotcom/mpesa-cloud-backend

# M-Pesa C2B Backend Integration with uniCenta POS ## Architecture Overview ``` Customer Phone → T

David-IT2/mpesa-stk-push-Backend

**C2B M-Pesa payment backend** powered by Safaricom Daraja API, enabling businesses to collect custo

Mbote-Joseph/Mpesa-Daraja-API-integration-Backend---NodeJS

# Mpesa-Daraja-API-integration-Backend---NodeJS