thiru/mpesa 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

thiru/mpesa

Composer 安装命令:

composer require thiru/mpesa

包简介

Mpesa api

README 文档

README

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)

统计信息

  • 总下载量: 54
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 5
  • Watchers: 3
  • Forks: 7
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2017-10-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固