Apparently Pesapal operates on the notion of pay all or nothing. I have always wondered how they deal with partial payments or whether they even support it.Solomon Kariri,
Software Developer,
Cell: +254721 956 172
Skype: solomonkaririOn Wed, Oct 5, 2016 at 1:42 PM, Ndungi Kyalo via skunkworks <skunkworks@lists.my.co.ke> wrote:If only wishes were horses!Thanks Kelvin.I would have wished for an API that simply returns how much has been paid for a transaction. Just that. The programmer knows best how to flag it.
It would be great if someone from Pesapal would shed more light on this great product API as well.
Something as simple as :
{'tx' : 'ABC-123', 'amount':'2260.0', 'ref' : 'MPESACODE'}--
Ndungi KyaloOn 5 October 2016 at 10:08, Kelvin <kjayanoris@gmail.com> wrote:As far as I know, there is now way of getting this from Pesapal via thei APIs.The closes you can get is thei "QueryPaymentDetails" method which only returns
- pesapal_transaction_tracking_i
d, - payment_method,
- payment_status,
- pesapal_merchant_reference
How I got around this in the past:Notice that Pesapal returns "pesapal_merchant_reference" which was generated by your system and fed into Pesapal initially.What I always do is to store the transaction details and then use this variable to query my own details once I get the IPN from Pesapal.Unless someone from Pesapal corrects me, I believe you will never (as of right now) get back the MPESA reference or the reason for failure, if any.One time I was parsing the excel file that you can get from Pesapal's dashboard to get a bit more information (the confirmation code / MPESA reference) - but I no longer think this is a good idea!On Wed, Oct 5, 2016 at 8:56 AM, Ken Muturi via skunkworks <skunkworks@lists.my.co.ke> wrote:Watching ......On Sat, Oct 1, 2016 at 11:08 AM, Ndungi Kyalo via skunkworks <skunkworks@lists.my.co.ke> wrote:Anyone has this info?Currently I am only able to get status (COMPLETED|PENDING|FAILED|INVAGreetings Skunkers,For those who know the Pesapal API inside out, is there a way to query :
1. the exact amount paid by a customer
2. the MPESA transaction/confirmation code3. the reason for a FAILED status (for the purpose of informing the customer on the next appropriate steps to take to resolve the failure)LID) and payment method. I think the other details (#1,#2,#3 above) are important to improve the customer's interaction with a system. --
Ndungi Kyalo
_______________________________________________
skunkworks mailing list
skunkworks@lists.my.co.ke
------------
List info, subscribe/unsubscribe
http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
------------
Skunkworks Rules
http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
------------
Other services @ http://my.co.ke
_______________________________________________
skunkworks mailing list
skunkworks@lists.my.co.ke
------------
List info, subscribe/unsubscribe
http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
------------
Skunkworks Rules
http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
------------
Other services @ http://my.co.ke
_______________________________________________
skunkworks mailing list
skunkworks@lists.my.co.ke
------------
List info, subscribe/unsubscribe
http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
------------
Skunkworks Rules
http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
------------
Other services @ http://my.co.ke
_______________________________________________
skunkworks mailing list
skunkworks@lists.my.co.ke
------------
List info, subscribe/unsubscribe
http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
------------
Skunkworks Rules
http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
------------
Other services @ http://my.co.ke