肯尼亚项目集成M_Pesa支付

1. 文档地址

2. api分类

  • 2.1 M-PEASE API
    • C2B API - Customer to busness This is the normal paybill and and till number service,
    • B2C API - This enables business to send money directly to a list of phone number
    • B2B API - This enables business to pay other businesses
    • Lipa na M-Pesa Online Payment
  • 2.2 OAuth API 基于oauth2.0 获取access_token

三、准备步骤

四、webd端集成

让客户咨询了mpesa客服, 暂时不支持pc端支付。 谷歌上有其余方式集成, 能够本身去看看。ios

五、Android 与 IOS 集成

- 安卓和ios是使用STKPush方式(Lipa na M-Pesa Online Payment)
-- 参数 长度 描述
-- BusinessShortCode 5-6位数字 理解为商户订单号
-- Password base64.encode(Shortcode+Passkey+Timestamp)
-- Timestamp YYYYMMDDHHmmss
-- TransactionType CustomerPayBillOnline 或者 CustomerBuyGoodsOnline
-- Amount 付款金额
-- PartyA 注册手机号(简单地理解,MSISDN就是手机号)国家码+手机号 肯尼亚254xxxxxxxxx 国家码前面0去掉否则报invalid phoneNumber
-- PartyB 5-6位数字, 能够和BusinessShortCode一致
-- PhoneNumber 接收skt请求的手机号, 能够与partA一致
-- CallBackURL 支付成功, mPease回调地址
-- AccountReference 最大12字符 支付弹出的提示
-- TransactionDesc 最大13字符 交易描述
  • Shortcode获取
  • Passkey获取

  • 5.3 返回值

六、附录

一个请求demo视频 完整网站集成demoapi

相关文章
相关标签/搜索