safaricom / LNMOnlineAndroidSample

Lipa Na MPESA Online (STK Push) Android Sample Application. This app demonstrates an e-commerce purchase and checkout process via Mpesa and Daraja :smile:
https://developer.safaricom.co.ke/
Apache License 2.0
128 stars 129 forks source link

Bad request in business shortcode #46

Closed SnowJunior closed 1 year ago

SnowJunior commented 1 year ago

{ "requestId":"324-23234973-1", "errorCode": "400.002.02", "errorMessage": "Bad Request - Invalid BusinessShortCode" }

ngangavic commented 1 year ago

@George-Onyango is this response for sandbox mode or production?

SnowJunior commented 1 year ago

sandbox

HorraceMuendo commented 1 year ago

@George-Onyango did you manage to fix this ?

SnowJunior commented 1 year ago

Yeah I was able to fix the issue. Made an article too in case someone else faces the same issue. https://snowsnippets.hashnode.dev/ruby-and-mpesa-api-how-to-integrate-daraja-api-using-ruby