skip to Main Content

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


  1. 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?

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search