pesaPi
pesaPi copied to clipboard
Fatal Error Caused by Decimal Value
See the response below
Fatal error</b>: Call to a member function setReceipt() on null in <b>/../pesapi/include/PLUSPEOPLE/PesaPi/MpesaPrivate/MpesaPrivate.php</b> on line <b>67</b><br />
The message that triggered this error is XXXXXXXX Confirmed.You have received Ksh1,030.00 from XXXX XXXXX 0712345678 on 10/3/16 at 9:26 PM New M-PESA balance is Ksh1,079.65. Pay bills via M-PESA.
I noticed that the smsyc works well if the decimal value is zero e.g Ksh1,079.00 and not Ksh1,079.65
Added a possible fix with the following pull request #16