Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/thirunjuguna/mpesa
- Owner: thirunjuguna
- License: mit
- Created: 2017-10-27T23:43:38.000Z (about 7 years ago)
- Default Branch: develop
- Last Pushed: 2018-04-27T10:16:01.000Z (over 6 years ago)
- Last Synced: 2024-04-21T01:42:19.823Z (9 months ago)
- Topics: api, b2c, c2b, laravel, mpesa, safaricom
- Language: PHP
- Size: 26.4 KB
- Stars: 4
- Watchers: 3
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
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)`