safaricom / mpesa-php-sdk

A PHP sdk for the new Mpesa RESTful APIs
188 stars 211 forks source link

How to check for callback responses? #13

Closed bettblake08 closed 6 years ago

bettblake08 commented 6 years ago

Hi, Thanks for this sdk. I would like to know how to check for callback responses to determine if m route needs to be debugged. The curl requests are processed successfully but i am not receiving any callback responses.

mossey commented 6 years ago

Hello @bettblake08 great question... To check whether any callbacks are getting to you, can look at your server access logs. This way you will be able to see all the request hitting your web-service.

bettblake08 commented 6 years ago

Ok thanks

nellycheboi commented 6 years ago

@mossey I am interacting with the Mpesa Api test endpoint i.e https://sandbox.safaricom.co.ke/mpesa/b2b/v1/paymentrequest for B2B request. I am still not getting any data at my callback server. Do you send responses even tests or is it just for production/live purposes. I fully debugged my callback server. I am able to get pings/request just not from Mpesa.

mossey commented 6 years ago

Hello @nellycheboi12, first of all sorry for the late response. Responses are sent even for applications on sandbox. Just make sure that the callback urls are publicly accessible from the internet

kamula commented 3 years ago

@mossey how can i get the responses from the applications on the sandbox