好吧,我们可以算一算,自从Safaricom将more作为RESTful API发布以来已经有三年多了,这些API可以通过它们的开发人员门户访问。他们的Github储存库有一个使用"Lipa na M-Pesa Online“API的样例安卓应用程序。此API代表应用程序的用户启动M事务,用户只需输入他们的M即可完成事务。
public STKPushService mpesaService() {
return getRestAdapter().create(STKPushService.class);
}现在是他们对AirtelMoney的相似之处,因为我有客户希望在他们的应用程序中使用我们在肯尼亚的所有移动支付。令人担心的是,他们比其他apis更多的是姆比萨?我正在寻找一种方法将airtel money合并到我的应用程序中,就像我们在Mpesa上所做的一样,因为我们已经有了支持airtel money的应用程序。
POST https://sandbox.safaricom.co.ke/mpesa/stkpush/v1/processrequest
有没有人尝试过这个AirtelMoneyLib,我看到它是3年前更新的。
<?php
/**
*
*/
require_once('config/Constant.php');
require_once('lib/AirtelMoney.php');
$airtelclient=new AirtelMoney;
//Call the processing function with parameters as shown
//You can do a retrieval of data from a request at this point
//Not advisable to pass the username and password in request. Rather use an environment variable for the same
/**
* $Username=$_POST['username'];
* $password=$_POST['password'];
* $msisdn=$_POST['msisdn'];
* $referenceId=$_POST['referenceId'];
* $timeFrom=$_POST['timeFrom'];
* $timeTo=$_POST['timeTo'];
*/
$referenceId="1601056579194";
$timeTo="";
$timeFrom="";
$airtelclient->processMerchantQuery(USERNAME,PASSWORD,$referenceId,MSISDN,REQUEST1,$timeTo,$timeFrom);
?>我需要知道一些让我在发送http request时很难得到反馈的事情。最近的一项google搜索在github上找到了一个名为github的新API,它现在是开放源码的,为什么它附带了一个巨大的价格标签,这就是为什么我试图看看这个旧api如何为我工作。
发布于 2019-04-02 12:42:35
目前有一个新的SDK库正在进行测试,我一直在一家名为Interswitch的公司下工作。它将处理多个支付渠道,包括信用卡银行和多个移动货币提供商。目前,它处理签证,万事达,Verve,姆比萨和赤道。不久还会增加更多。我不知道目前的定价,但你可以接触到Interswitch的一个测试帐户,我将能够提供技术支持,您可能需要的集成。查看它的github回购上的代码
https://stackoverflow.com/questions/55447558
复制相似问题