neshoj / safaricom-daraja-nodejs

Standalone M-Pesa payments service using the new Daraja Payment API by Safaricom.
33 stars 27 forks source link

STK PUSH #5

Closed charliekaks closed 4 years ago

charliekaks commented 5 years ago

Hey, am loving your node app really convenient. One issue though when I send the stk push I get { "status": "01", "message": "Invalid remote response" } but the stk still shows up and confirms my payment. What could be the issue?

charliekaks commented 5 years ago

I was doing some debugging after getting the above response and I made a change in the mpesaFunctions.js file. I think one of the conditions in httpResponseBodyProcessor function should not have a ! the isEmpty(responseData.body.status). After the change, it worked. Am not sure of the solution please review and confirm

neshoj commented 5 years ago

Hi @charliekaks allow me review the above issue and provide feedback on it

neshoj commented 4 years ago

Hi @charliekaks after very many months I have returned to resolve the issue, check the latest update. I wouldn't mind having you as a contributor to the project by the way.