javad-zobeidi / zarinpal

Zarinpal Package for dar & flutter, support android and ios
BSD 3-Clause "New" or "Revised" License
22 stars 0 forks source link

Cant open gateway in browser #4

Closed edrisranjbar closed 3 years ago

edrisranjbar commented 3 years ago

Hay, thanks for creating this package for flutter, I'm having trouble using it. basically the I'm using the same code example as you have it in ReadMe file but still does not work. Here's the error that I'm keep getting:

Error
DioError [DioErrorType.response]: XMLHttpRequest error.

C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/patch/core_patch.dart 906:28   get current
packages/dio/src/dio_mixin.dart 819:20                                                                            assureDioError       
packages/dio/src/dio_mixin.dart 678:13                                                                            _dispatchRequest     
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 60:31   <fn>
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/async/zone.dart 1617:54                                 runBinary
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/async/future_impl.dart 166:20                           handleError
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/async/future_impl.dart 716:46                           handleError
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/async/future_impl.dart 737:13                           _propagateToListenersC:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/async/future_impl.dart 547:5                            [_completeError]     
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/async/future_impl.dart 603:7                            callback
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/async/schedule_microtask.dart 40:11                     _microtaskLoop       
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/async/schedule_microtask.dart 49:5                      _startMicrotaskLoop  
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 166:15  <fn>

I'll be happy if you can give me a hint or a solution to be able to fix it.