mpesa-php-sdk icon indicating copy to clipboard operation
mpesa-php-sdk copied to clipboard

No response from callback url

Open kamandemwangi opened this issue 2 years ago • 15 comments

I am interacting with lipa na M-pesa online endpoint, https://sandbox.safaricom.co.ke/mpesa/stkpush/v1/processrequest. I am experiencing an issues where sometimes I get response at my callback url but sometime there is no response at all and my callback url is accessible from the internet.

kamandemwangi avatar May 14 '22 08:05 kamandemwangi

For me also same issue with sandbox api. sometimes getting the below response, most of the times, no response. stkCallback: { MerchantRequestID: '53785-65856915-1', CheckoutRequestID: 'ws_CO_23052022122137653708374149', ResultCode: 1019, ResultDesc: 'Transaction has expired' }

sandeshdasi avatar May 23 '22 09:05 sandeshdasi

@mossey please give as an explanation or a solution to the issue. I rely on the data posted to the callback url for systems functionality. @sandeshdasi Besides lack of response, what you are getting means an error occurred or the transaction failed as per the Safaricom daraja documentation "ResultCode: This is a numeric status code that indicates the status of the transaction processing. 0 means successful processing and any other code means an error occurred or the transaction failed."

kamandemwangi avatar May 23 '22 20:05 kamandemwangi

@kamandemwangi thanks for the response. I tried with LIVE details instead of SANDBOX, it is working fine, getting valid response every time.

sandeshdasi avatar May 25 '22 08:05 sandeshdasi

I am simulating a C2B transaction on sandbox. The following are the steps I have taken:

  1. Get auth token.
  2. Register Callback URLs
  3. Simulate payment. All the above are successful.

However the callback URL is not getting any hits. It is not a UFW issue cause another STK callback script running (m-pesa live) is getting hits of the callback.

What could I be missing here?

em-manuel avatar Jan 16 '23 22:01 em-manuel

am also getting this issue on sandbox,Everything is happening correctly and the payment are being made successfull but my callback is not getting any hit at all from mpesa

ronjohnson-owuor avatar Nov 30 '23 16:11 ronjohnson-owuor

really urgent someone please

ronjohnson-owuor avatar Nov 30 '23 16:11 ronjohnson-owuor

This is an issue from safaricom's side. It has been bothering so many people for so long. It is really sad to see that 2 years later nothing has been done to fix it.

qualebs avatar May 01 '24 13:05 qualebs