jonasbark / flutter_stripe_payment

[DISCONTINUED] A flutter plugin with stripe payment plugin integration
MIT License
309 stars 244 forks source link

MissingPluginException #260

Open scarranca opened 3 years ago

scarranca commented 3 years ago

I'm having an issue when using StripePayment.setOptions(StripeOptions(publishableKey:"")) inside initState.

E/flutter (22554): [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: MissingPluginException(No implementation found for method setOptions on channel stripe_payment)

Flutter Doctor: Flutter (Channel stable, 1.22.6, on macOS 11.2.2 20D80 darwin-x64, locale en-MX) • Flutter version 1.22.6 at /Users/santiagocarranca/Developer/flutter • Framework revision 9b2d32b605 (7 weeks ago), 2021-01-22 14:36:39 -0800 • Engine revision 2f0af37152 • Dart version 2.10.5

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2) • Android SDK at /Users/santiagocarranca/Library/Android/sdk • Platform android-30, build-tools 30.0.2 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495) • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.4) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 12.4, Build version 12D4e • CocoaPods version 1.10.1

[✓] Android Studio (version 4.1) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin installed • Dart plugin version 201.9317 • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] VS Code (version 1.54.2) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.20.0

[✓] Connected device (1 available) • SM N975F (mobile) • RF8N305VMWT • android-arm64 • Android 11 (API 30)

• No issues found!

This happens only in Android.

todibbang commented 3 years ago

Same here. Channel stable, 2.0.3

arslandevcrew commented 3 years ago

same here

jonasbark commented 3 years ago

Please provide a minimal example app where this behavior is reproducible

kincody commented 3 years ago

example/lib/main.dart seems to be misbehaving on my android device with error: E/flutter (15308): [ERROR:flutter/lib/ui/ui_dart_state.cc(186)] Unhandled Exception: MissingPluginException(No implementation found for method setOptions on channel stripe_payment)

further when the create source button is clicked a snack bar error shows up saying, MissingPluginExeption(No implementation found for method createSourceWithParams on channel Stripe_Payment)