kn9ts/project-mulla

Authentication Failed

Closed this issue · 8 comments

HTTP/1.1 500 Internal Server Error
Content-Length: 71
Content-Type: application/json; charset=utf-8
Date: Fri, 10 Jun 2016 19:13:59 GMT
ETag: W/"47-QF6qBiKtCUQCLU0A2DNoVg"
X-Powered-By: Express
set-cookie: connect.sid=s%3ADBjDmYnygsM3- 82Cw9e20F_8at65WasY.sSMgGuVZT0SxTBegG6TVOetY24eo7rp4FVr%2FuGnwOTs; Path=/; HttpOnly

{
"response": {
"description": "authentication failed",
"return_code": "42"
}
}
Am getting an Authentication error, any way around it?

kn9ts commented

@denzelwamburu First of all. The return code has not been mapped to a HTTP status. The Safaricom documentation does not have this error code documented.

Then this might be the PASSWORD generated does not validate with the SAG endpoint. Check you have all of your configurations right. Starting with the PASSKEY you are allocated and PAYBILL No.

kn9ts commented

@denzelwamburu Were you able to sort this out?

@kn9ts Sorry for the late reply. Let me fetch then i try once more.

screenshot from 2016-06-15 18 55 45
Now it's returning a 500 error code.

Does safaricom provide a sandbox account for the paybills?

kn9ts commented

@denzelwamburu Am curious. Do you have a PAYBILL_NO and PASSKEY? Did you get them from Safaricom MPESA API guys?

Guess i will close the issue now 😃