Skip to content
Advertisement

m-Pesa STKPush Request throws an error “update failed9”

Folks, hope you all doing good.

I’m working on a project in PHP in which we have to integrate m-Pesa as payment gateway. I don’t know how and why but “Lipa Na M-Pesa Online Payment” this API when called it gives an error

update failed9

in Sim Tool Kit push dialog box. Even though we are getting a positive response from the m-Pesa server that “Your Request is accepted for processing” and then after a while(10 mins or so) our callback URL gets called by the m-Pesa server with a response of request timed out.

Here is my Request Body:

{
"BusinessShortCode": "242599",
"Password": "MjQyNTk5YmZiMjc5ZjlhYTliZGJjZjE1OGU5N2RkNzFhNDY3Y2QyZTBjODkzMDU5YjEwZjc4ZTZiNzJhZGExZWQyYzkxOTIwMTkwNzEzMTI1NTMw",
"Timestamp": "20190713125530",
"TransactionType": "CustomerBuyGoodsOnline",
"Amount": "1000",
"PartyA": "254708374149",
"PartyB": "242599",
"PhoneNumber": "254721705529",
"CallBackURL": "http://961bb2f4.ngrok.io/hooks/mpesa",
"AccountReference": "account",
"TransactionDesc": "test" }

Here is the error screenshot

enter image description here

Advertisement

Answer

Are you able to get the screen to enter your PIN? you can use that to tell if safaricom is able to initiate the API on your end.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement