Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/thirunjuguna/mpesa

mpesa b2c and c2b
https://github.com/thirunjuguna/mpesa

api b2c c2b laravel mpesa safaricom

Last synced: about 1 month ago
JSON representation

mpesa b2c and c2b

Awesome Lists containing this project

README

        

MPESA API
=================
This is a LARAVEL PHP package for the Safaricom's M-Pesa API. The API allows a merchant to initiate C2B online checkout (paybill via web) transactions and perform B2C transaction via the web.

After request submission, the merchant receives instant feedback with validity status of their requests. The C2B API handles customer validation and authentication via USSD push. The customer then confirms the transaction. If the validation of the customer fails or the customer declines the transaction, the API makes a callback to merchant. Otherwise the transaction is processed and its status is made through a callback.

Installation
============================
composer `require thiru/mpesa`

Add \Thiru\Mpesa\MpesaServiceProvider::class on config/app.php

`php artisan vendor:publish --tag=config`

The laravel mpesa Package is open-sourced software licensed under the MIT license.

B2C

`Mpesa::sendMpesaPayment('1000','956555', 'Salary 2017');//$amount,$paybill,$remark`

C2B

`Mpesa::requestMpesaPayment($amount, $mobile, $account, $desc)`