From f78d60fedb51c8db2ea39f8e4b9f938b8102c0f7 Mon Sep 17 00:00:00 2001 From: Marco Lettieri Date: Mon, 5 Feb 2024 17:47:04 +0100 Subject: [PATCH 1/2] Fix handleNextActionForSetup --- .../lib/src/method_channel_stripe.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/stripe_platform_interface/lib/src/method_channel_stripe.dart b/packages/stripe_platform_interface/lib/src/method_channel_stripe.dart index 9b78a7ae6..45f7c8583 100644 --- a/packages/stripe_platform_interface/lib/src/method_channel_stripe.dart +++ b/packages/stripe_platform_interface/lib/src/method_channel_stripe.dart @@ -155,7 +155,7 @@ class MethodChannelStripe extends StripePlatform { String setupIntentClientSecret, {String? returnURL}) async { final result = await _methodChannel - .invokeMapMethod('handleNextAction', { + .invokeMapMethod('handleNextActionForSetup', { 'setupIntentClientSecret': setupIntentClientSecret, if (_platformIsIos) 'returnURL': returnURL, }); From 6d1f41f953cbfd83195bfc4a8ed66b326ad62b1e Mon Sep 17 00:00:00 2001 From: Marco Lettieri Date: Mon, 24 Jun 2024 15:46:57 +0200 Subject: [PATCH 2/2] handleNextActionForSetup iOS --- packages/stripe_ios/ios/Classes/StripePlugin.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/stripe_ios/ios/Classes/StripePlugin.swift b/packages/stripe_ios/ios/Classes/StripePlugin.swift index 30052c3e2..80494e012 100644 --- a/packages/stripe_ios/ios/Classes/StripePlugin.swift +++ b/packages/stripe_ios/ios/Classes/StripePlugin.swift @@ -204,6 +204,8 @@ class StripePlugin: StripeSdk, FlutterPlugin, ViewManagerDelegate { resolver: resolver(for: result), rejecter: rejecter(for: result) ) + case "handleNextActionForSetup": + return handleNextActionForSetupIntent(call, result: result) default: result(FlutterMethodNotImplemented) }