-
-
Notifications
You must be signed in to change notification settings - Fork 546
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create token problem in Android #377
Comments
Please post the full exception details from the log output. |
Accessing hidden method Lsun/misc/Unsafe;->getLong(Ljava/lang/Object;J)J (greylist,core-platform-api, linking, allowed) |
This error has been reported often and it was always a configuration issue. Double-check the readme and follow its instructions on Android 👍 |
Still, we are facing the same problem Yes I have same error in example app also Flutter version 2.5.1 manifest :
Please help me with this |
Stripe initialization
Stripe.publishableKey = stripe_global_key;
Stripe.merchantIdentifier =
'merchant.flutter.stripe.test'; //"Test";//'merchant.flutter.stripe.test';
Stripe.urlScheme = 'flutterstripe';
Card adding
CardField(
autofocus: true,
onCardChanged: (card) {
setState(() {
_card = card;
});
},
),
Using token creation for the specific card
final tokenData = await Stripe.instance.createToken(
CreateTokenParams(type: TokenType.Card, address: address),
);
I got an exception in Android, But iOS is working fine.
PlatformException(flutter_stripe initialization failed, The plugin failed to initialize. Are you using FlutterFragmentActivity? Please check the README: https://github.com/flutter-stripe/flutter_stripe#android, null, null)
The text was updated successfully, but these errors were encountered: