wilburx9 / rave_flutter

A Flutter plugin for Flutterwaves's rave.
Apache License 2.0
31 stars 58 forks source link

Mobile money (Mpesa) error responses #20

Open thukuwanjiku opened 4 years ago

thukuwanjiku commented 4 years ago

Testing Mpesa payments, I realized that Mpesa error responses are not being caught, to display error response in the app. An Mpesa error may arise from

  1. Wrong Mpesa account no
  2. Insufficient Mpesa account funds
  3. Mpesa pin prompt cancelled by user
  4. Wrong Mpesa PIN entered by user
  5. Timeout & other errors

I understand this plugin is not a solely Mpesa plugin, but if the errors would be well caught to give an alert of the error, and to dismiss the spinner and maybe the modal, it would be more user friendly.

wilburx9 commented 4 years ago

Thanks for this. Please, did you discover these errors in dev or production?

thukuwanjiku commented 4 years ago

Thanks for this. Please, did you discover these errors in dev or production?

In production. the spinner loads indefinitely.

wilburx9 commented 4 years ago

Please, can you shoot me a mail? I will need real details to test this.

Yonkokilasi commented 3 years ago

I have encountered the same. What details do you need @wilburt ?