From 575a815fa6952105b35b68cb785a5a4a8651e982 Mon Sep 17 00:00:00 2001 From: Alexander Gutev Date: Fri, 29 Nov 2024 13:04:19 +0100 Subject: [PATCH] Fix issue with CaptureMethod.Manual on iOS. --- .../ios/Classes/Stripe Sdk/StripeSdk+PaymentSheet.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/stripe_ios/ios/Classes/Stripe Sdk/StripeSdk+PaymentSheet.swift b/packages/stripe_ios/ios/Classes/Stripe Sdk/StripeSdk+PaymentSheet.swift index 99ba2b78..649b0b05 100644 --- a/packages/stripe_ios/ios/Classes/Stripe Sdk/StripeSdk+PaymentSheet.swift +++ b/packages/stripe_ios/ios/Classes/Stripe Sdk/StripeSdk+PaymentSheet.swift @@ -187,7 +187,7 @@ extension StripeSdk { resolve(Errors.createError(ErrorType.Failed, "You must provide `intentConfiguration.confirmHandler` if you are not passing an intent client secret")) return } - let captureMethodString = intentConfiguration["captureMethod"] as? String + let captureMethodString = modeParams["captureMethod"] as? String let intentConfig = buildIntentConfiguration( modeParams: modeParams, paymentMethodTypes: intentConfiguration["paymentMethodTypes"] as? [String],