描述错误 开
生产和调试模式都会受到此错误的影响。 在更新到 iOS 16 之前它运行良好,但在 iOS 17 上开始出现。 但在 Android 中工作正常。
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", ), ); }
预期行为 显示付款单。
智能手机/平板电脑
设备:iPhone XS 操作系统:iOS 17 软件包版本:10.0.0 颤振版本3.16.9 额外的背景信息 flutter_stripe 是最新版本。 flutter_stripe:10.0.0
https://github.com/flutter-stripe/flutter_stripe/issues/1641 Flutter IOS 抛出错误 StripeError 未知结果,这可能是插件中的问题
我面临并在 stripe github 上提到的同样问题