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.

L00P3R93/daraja-mpesa-v1

Domain:

digital infrastructure

Record type:

software
Creator:
L00
Host:
A complete MPESA DARAJA API intergration of C2B, B2C, TransactionStatus & AccountBalance Requests # M-PESA DARAJA API Package This is a PHP package for the Safaricom's M-Pesa Daraja API. ## Installations This project supports both composer dependency management tool and can also be used without composer ### Using Composer 1. Run the following command ``` composer require sntaks/daraja-mpesa ``` ### Without composer 1. Download the source code as zipped 2. Follow the following directions ``` 10, 'PartyB' => 'xxx', 'Remarks' => 'Test Business Payment' ]; //Initiate B2C Payment Request $response = $mpesa->b2c($user_params); //Requests Account Balance $response = $mpesa->b2c_account_balance(); $response = $mpesa->c2b_account_balance(); // B2C Payment Transaction Status User Params $user_params = [ 'TransactionID' => 'xxxx' ]; // B2C Payment Transaction Status Request $response = $mpesa->b2c_transaction_status($user_params); //C2B Register Endpoints $response_register = $mpesa->c2b(); }catch(\Exception $e){ $response = json_decode($e->getMessage()); } header('Content-Type: application/json'); echo json_encode($response); ``` ## Support Need support using this package:- Send a quick message here ## API's Supported The library implements all the exposed endpoints by Safaricom as listed below:- ### 1. Lipa na M-Pesa Online Payment ####     What it is? The Lipa na M-Pesa Online Payment endpoint(STK push) allows you to request payment from your users/clients. With this endpoint all the user is required to do is input their M-PESA pin to a prompt to send a payment to you. ####     How to implement it? Read docs here. ### 2. Lipa na M-Pesa Online Query Request ####     What it is? When you request payment from your users/clients via Lipa na M-Pesa Online endpoint above you might want to know the status of that request. This endpoint facilitates that. It allows you to query the status of any STK push on demand. ####     How to implement it? Read docs here. ### 3. C2B ####     What it is? This endpoint ena …

Visit

github.com

Languages

Lusengo

Licenses

GPL-3.0

Similar

L00P3R93/daraja-mpesaBKerio/mpesa-darajaEccb7/Mpesa-DarajaZentricTech/Mpesa-Daraja-Api

L00P3R93/daraja-mpesa

A PHP library/Laravel Package for integrating with M-Pesa Daraja API # M-Pesa Daraja PHP Library T

BKerio/mpesa-daraja

# M-Pesa Daraja Full guide Django and Express.JS Payment Integration This project provides an end-t

Eccb7/Mpesa-Daraja

This repo acts a s a guide to Daraja API within a rails app and python # M-Pesa Daraja API Implemen

ZentricTech/Mpesa-Daraja-Api

Full M-Pesa Daraja API with PHP Welcome to the complete implementation of the M-Pesa Daraja API usin