jumaallan / android-mpesa-api

Android MPESA SDK Library to provide smooth MPESA Experience in Android - Dubbed Daraja
https://androidstudy.com
MIT License
192 stars 187 forks source link

Bad Request - Invalid BusinessShortCode #80

Closed joelkanyi closed 1 year ago

joelkanyi commented 2 years ago

Describe the bug I created a small demo and tried using the library but I keep getting this exception below. I went ahead and cloned this repo and executed it on my Android Studio but still the same exception. I then went ahead and replaced the credential with mine, but still the same error.

com.androidstudy.daraja.callback.DarajaException: 400.002.02 : Bad Request - Invalid BusinessShortCode

To Reproduce Steps to reproduce the behavior:

  1. Run the demo once you clone this repo
  2. Input your phone number and amount
  3. Click on Pay Button
  4. The error will be toasted
jumaallan commented 1 year ago

Should be fixed by PR #81

Mosericko commented 1 year ago

Still getting the same error even after the fix.
exception: 400.002.02 : Bad Request - Invalid BusinessShortCode
Any help would be greatly appreciated

jumaallan commented 1 year ago

Still getting the same error even after the fix. exception: 400.002.02 : Bad Request - Invalid BusinessShortCode Any help would be greatly appreciated

My bad

Need to do a new release.

@wangerekaharun

Mosericko commented 1 year ago

Haha no worries, thanks