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

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

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

kiveu/mpesa

最新稳定版本:1.1.0

Composer 安装命令:

composer require kiveu/mpesa

包简介

This is a PHP SDK for the M-Pesa API for Mpesa Daraja API 2.0 2024

README 文档

README

This is a php sdk for the new Mpesa Daraja Api. It is still in development and will be updated as the api changes.

Installation

You can install the package via composer:

composer require kiveu/mpesa

dev version

composer require kiveu/mpesa:dev-main

UNDER DEVELOPMENT

Usage

use Kiveu\Mpesa\StkPush;

$stkpush = new StkPush();

$stkpush->initiate($phone_number, $amount, $reference, $description);

Testing

composer test

ENVIRONMENT VARIABLES

MPESA_ENV= production # or sandbox >
MPESA_CONSUMER_KEY= add your consumer key
MPESA_CONSUMER_SECRET= add your consumer secret
MPESA_PASSKEY= add your passkey
MPESA_SHORTCODE= add your shortcode
MPESA_SHORTCODE_TYPE= Paybill # or BuyGoods
MPESA_BUY_GOODS_TILL= add your buy goods till
MPESA_CALLBACK_URL= add your callback url
MPESA_INITIATOR_NAME= add your initiator name
MPESA_INITIATOR_PASSWORD= add your initiator password
MPESA_B2C_SHORTCODE= add your b2c shortcode
MPESA_B2C_COMMAND_ID= add your b2c command id eg SalaryPayment, BusinessPayment, PromotionPayment
MAPESA_C2B_VERSION= add your c2b version v1 or v2
MPESA_CONFIRMATION_URL= add your confirmation url
MPESA_VALIDATION_URL= add your validation url
MPESA_RESULT_URL= add your result url
KRA_SHORT_CODE= add your kra shortcode

统计信息

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

GitHub 信息

  • Stars: 6
  • Watchers: 2
  • Forks: 6
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-01-21