pesaPi icon indicating copy to clipboard operation
pesaPi copied to clipboard

Fatal Error Caused by Decimal Value

Open PaulKish opened this issue 8 years ago • 1 comments

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

PaulKish avatar Mar 29 '16 20:03 PaulKish

Added a possible fix with the following pull request #16

PaulKish avatar Mar 30 '16 13:03 PaulKish