--
PesaPi official website http://www.pesapi.com
---
You received this message because you are subscribed to a topic in the Google Groups "PesaPi" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pesapi/4MzfQvm9_78/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pesapi+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "PesaPi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pesapi+unsubscribe@googlegroups.com.
My colleague and i just finished to successfully implement the mpesa buy goods validation and confirmation.Its been a process but now we have managed to integrate it sure.
In case of assistance i will stick around.
My colleague and i just finished to successfully implement the mpesa buy goods validation and confirmation.Its been a process but now we have managed to integrate it sure.
In case of assistance i will stick around.
My colleague and i just finished to successfully implement the mpesa buy goods validation and confirmation.Its been a process but now we have managed to integrate it sure.
In case of assistance i will stick around.
Dear John,
--
You received this message because you are subscribed to a topic in the Google Groups "PesaPi" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pesapi/4MzfQvm9_78/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pesapi+unsubscribe@googlegroups.com.
Hi guys,
Since this is a challenge we are all facing,could we meet with John and discuss?
On Thu, Feb 16, 2017 at 9:05 AM, <ra...@statecorps.ae> wrote:
Dear John,I am dotnet Developer and trying to start with M-Pesa integration. On other hand , I have already follow up some research but I did not get sufficient inforation from them.As I read your message and found that you did it,Successfully.Will you please send me some links or any material that will Help me ......Thanks In Advance
--
PesaPi official website http://www.pesapi.com
---
You received this message because you are subscribed to a topic in the Google Groups "PesaPi" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pesapi/4MzfQvm9_78/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pesapi+un...@googlegroups.com.
--PngangaHi,Regards,
I can provide a venue...office right next to a pub in case things get frustrating :)
On Thursday, 16 February 2017 14:57:46 UTC+3, Pius Nganga wrote:
Hi guys,
Since this is a challenge we are all facing,could we meet with John and discuss?
On Thu, Feb 16, 2017 at 9:05 AM, <ra...@statecorps.ae> wrote:
Dear John,I am dotnet Developer and trying to start with M-Pesa integration. On other hand , I have already follow up some research but I did not get sufficient inforation from them.As I read your message and found that you did it,Successfully.Will you please send me some links or any material that will Help me ......Thanks In Advance
--
PesaPi official website http://www.pesapi.com
---
You received this message because you are subscribed to a topic in the Google Groups "PesaPi" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pesapi/4MzfQvm9_78/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pesapi+un...@googlegroups.com.
--PngangaHi,Regards,
John... give me a call please on 0724589457
You received this message because you are subscribed to the Google Groups "PesaPi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pesapi+un...@googlegroups.com.
<?php
if (!$request=file_get_contents('php://input'))
{
echo "Invalid input";
exit();
}
//clean the soap input received from Mpesa so that you can parse it as raw XML
$clean_xml = str_ireplace(['soapenv:', 'soap:', 'c2b:', 'ns1:' ], $request);
$xml = simplexml_load_string($clean_xml);
//you can extract any payment details using the below code
foreach ($xml->xpath('//C2BPaymentValidationRequest') as $item)
{
$AccountNo=trim($item->BillRefNumber);
//VALUES
$AccountNo = $cur->BillRefNumber;
//SAVE TO DATABASE
$connect = mysql_connect($server,$user,$pass) or die (mysql_error());
$select = mysql_select_db($db) or die (mysql_error());
$query = "SELECT * FROM `USERS` WHERE `name`='".mysql_real_escape_string(trim($AccountNo))."'";
$result = mysqli_query($connect,$select,$query);
if (mysqli_num_rows($result) == 1)
{
echo '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:c2b="http://cps.huawei.com/cpsinterface/c2bpayment">
<soapenv:Header/>
<soapenv:Body>
<c2b:C2BPaymentValidationResult>
<ResultCode>0</ResultCode>
<ResultDesc>Service processing successful</ResultDesc>
<ThirdPartyTransID></ThirdPartyTransID>
</c2b:C2BPaymentValidationResult>
</soapenv:Body>
</soapenv:Envelope>
'; //Pass, do something
}
else
{
echo '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:c2b="http://cps.huawei.com/cpsinterface/c2bpayment">
<soapenv:Header/>
<soapenv:Body>
<c2b:C2BPaymentValidationResult>
<ResultCode>C2B00012</ResultCode>
<ResultDesc>Invalid Account number</ResultDesc>
<ThirdPartyTransID></ThirdPartyTransID>
</c2b:C2BPaymentValidationResult>
</soapenv:Body>
</soapenv:Envelope>
'; //Fail
}
}
?>
--
PesaPi official website http://www.pesapi.com
---
You received this message because you are subscribed to a topic in the Google Groups "PesaPi" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pesapi/4MzfQvm9_78/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pesapi+unsubscribe@googlegroups.com.
--
PesaPi official website http://www.pesapi.com
---
You received this message because you are subscribed to the Google Groups "PesaPi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pesapi+un...@googlegroups.com.
--
PesaPi official website http://www.pesapi.com
---
You received this message because you are subscribed to the Google Groups "PesaPi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pesapi+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
PesaPi official website http://www.pesapi.com
---
You received this message because you are subscribed to the Google Groups "PesaPi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pesapi+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.