Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mpesa Express STK Push Error #38

Open
basiljereh opened this issue Jan 13, 2020 · 1 comment
Open

Mpesa Express STK Push Error #38

basiljereh opened this issue Jan 13, 2020 · 1 comment

Comments

@basiljereh
Copy link

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)

@basiljereh
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant