safaricom/LNMOnlineAndroidSample

Mpesa Express STK Push Error

Opened this issue · 1 comments

Hi Guys,
Please assist try resolve the below issue and error am facing on my Android App when implementing the STK Push onto it.
Getting below error see logs:

D/OkHttp: --> POST https://sandbox.safaricom.co.ke/mpesa/stkpush/v1/processrequest
D/OkHttp: Content-Type: application/json; charset=UTF-8
D/OkHttp: Content-Length: 432
D/OkHttp: {"AccountReference":"test","Amount":"100","BusinessShortCode":"174379","CallBackURL":"https://peternjeru.co.ke/safdaraja/api/callback.php","PartyA":"254718908314","PartyB":"174379","Password":"MTc0Mzc5YmZiMjc5ZjlhYTliZGJjZjE1OGU5N2RkNzFhNDY3Y2QyZTBjODkzMDU5YjEwZjc4ZTZiNzJhZGExZWQyYzkxOTIwMjAwMTEzMTcwMzA1","PhoneNumber":"254718908314","Timestamp":"20200113170305","TransactionDesc":"test","TransactionType":"CustomerPayBillOnline"}
D/OkHttp: --> END POST (432-byte body)
D/OkHttp: <-- 400 Bad Request https://sandbox.safaricom.co.ke/mpesa/stkpush/v1/processrequest (1047ms)

Am able to get the Access Token but when initiating the STKPush method on the app it throws back BAD REQUEST