Describe the bug
On
Both production and debug mode are affected by this error.
It was working fine before updating to iOS 16, but started appear on iOS 17.
but in android working fine.
openPaymentSheet() async { Stripe.publishableKey = "${publishKey}"; await Stripe.instance.initPaymentSheet( paymentSheetParameters: SetupPaymentSheetParameters( appearance: const PaymentSheetAppearance( colors: PaymentSheetAppearanceColors( primary: AppColors.primary, ), ), billingDetailsCollectionConfiguration: const BillingDetailsCollectionConfiguration( name: CollectionMode.always, phone: CollectionMode.never, email: CollectionMode.never, address: AddressCollectionMode.full, attachDefaultsToPaymentMethod: true, ), billingDetails: BillingDetails( name: "${$firstName ?? ''} ${$lastName ?? ''}", email: "$emailAddress", phone: "$contactPhone", ), paymentIntentClientSecret: "${clientSecret}", customerId: "$customerId", style: ThemeMode.dark, merchantDisplayName: "$merchantName", ), ); }
Expected behavior
Show payment sheet.
Smartphone / tablet
Device: iPhone XS
OS: iOS 17
Package version: 10.0.0
Flutter version 3.16.9
Additional context
flutter_stripe is on latest version.
flutter_stripe: 10.0.0
2
Answers
https://github.com/flutter-stripe/flutter_stripe/issues/1641
Flutter IOS Throwing error StripeError Unknown result this is likely a problem in the plugin
Same issue I facing and mention on stripe github
Can you check your xcode console and see if it provides some information explains why the payment wasn’t successful through the underlying Stripe iOS SDK?