keronei / mpesa_flutter_plugin

Simple plugin for implementing Lipa Na MPESA Online on a flutter app.
https://pub.dev/packages/mpesa_flutter_plugin
Other
35 stars 19 forks source link

Support for flutter web #5

Closed ndungudedan closed 3 years ago

ndungudedan commented 3 years ago

I tried to integrate your plugin to a flutter web project but it does not work.. In android it works well with the same code base

Mozoku commented 3 years ago

i'm guessing no action on this? or did you find a work around?

ndungudedan commented 3 years ago

Error message:"Unsupported operation: Platform._version" .According to flutter The top-level http methods use a dart:io-based client that doesn't work on the browser.. issue track. For the moment no action on this

talhasaleem81 commented 3 years ago

Hey! I'M WORKING ON FLUTTER Mobile.

i tried your plugin but the popup for the M-Pesa pin doesn't came up for me, but i got the successful response from it:

"I/flutter (20468): TRANSACTION RESULT: {MerchantRequestID: 17415-1095797-1, CheckoutRequestID: ws_CO_260520211337404519, ResponseCode: 0, ResponseDescription: Success. Request accepted for processing, CustomerMessage: Success. Request accepted for processing}"

Also i'm trying it from Asia and if i gave my number then it says:

"error: +9233xxxxxxxx need be in international format"

otherwise if i use another kenyan number (254729050401) then it works fine. Thanks in advance

ndungudedan commented 3 years ago

Hey talhasaleem81. I dont think its possible to use mpesa services in asia..Its only available to east africa. The mpesa pin pop up may delay occassionally.