From f1d0d42d9b5c6eae68f98c40fe9c07dc46a2937e Mon Sep 17 00:00:00 2001 From: Elia Tolin Date: Wed, 26 Jul 2023 14:14:23 +0200 Subject: [PATCH 1/3] bug fix, convert list to dict. (#1333) --- packages/stripe_ios/ios/Classes/StripePlugin.swift | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/stripe_ios/ios/Classes/StripePlugin.swift b/packages/stripe_ios/ios/Classes/StripePlugin.swift index bf12add8f..c00564784 100644 --- a/packages/stripe_ios/ios/Classes/StripePlugin.swift +++ b/packages/stripe_ios/ios/Classes/StripePlugin.swift @@ -191,11 +191,18 @@ extension StripePlugin { func presentPaymentSheet(_ call: FlutterMethodCall, result: @escaping FlutterResult) { guard let arguments = call.arguments as? FlutterMap, - let options = arguments["options"] as? NSDictionary else { + let options = arguments["options"] as? NSDictionary else { result(FlutterError.invalidParams) return } - presentPaymentSheet(options: options, resolver: resolver(for: result), rejecter: rejecter(for: result)) + presentPaymentSheet(options: options, resolver: { paymentResult in + if let resultList = paymentResult as? [Any] { + let resultMap: NSDictionary = [:] + result(resultMap) + } else { + result(paymentResult) + } + }, rejecter: rejecter(for: result)) } func createTokenForCVCUpdate(_ call: FlutterMethodCall, result: @escaping FlutterResult) { From a2cc1006e6708db7ef63059388559b625b952d7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mon?= Date: Mon, 31 Jul 2023 19:16:04 +0100 Subject: [PATCH 2/3] Release version 930 (#1319) * chore(release): publish packages - stripe_platform_interface@9.3.0 * chore(release): publish packages - stripe_ios@9.3.0 * chore(release): publish packages - stripe_android@9.3.0 * chore(release): publish packages - stripe_js@3.2.0 * chore(release): publish packages - flutter_stripe_web@4.3.0 * chore(release): publish packages - flutter_stripe@9.3.0 --------- Co-authored-by: Remon <> --- CHANGELOG.md | 191 ++++++++++++++++++ example/macos/Podfile | 2 +- example/macos/Podfile.lock | 6 +- .../macos/Runner.xcodeproj/project.pbxproj | 11 +- .../xcshareddata/xcschemes/Runner.xcscheme | 2 +- example/pubspec.yaml | 4 +- packages/stripe/CHANGELOG.md | 9 + packages/stripe/pubspec.yaml | 8 +- packages/stripe_android/CHANGELOG.md | 9 + packages/stripe_android/pubspec.yaml | 2 +- packages/stripe_ios/CHANGELOG.md | 9 + packages/stripe_ios/pubspec.yaml | 2 +- packages/stripe_js/CHANGELOG.md | 7 + packages/stripe_js/pubspec.yaml | 2 +- .../stripe_platform_interface/CHANGELOG.md | 9 + .../stripe_platform_interface/pubspec.yaml | 2 +- packages/stripe_web/CHANGELOG.md | 6 + packages/stripe_web/pubspec.yaml | 6 +- 18 files changed, 264 insertions(+), 23 deletions(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 000000000..9bc237706 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,191 @@ +# Change Log + +All notable changes to this project will be documented in this file. +See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. + +## 2023-07-18 + +### Changes + +--- + +Packages with breaking changes: + + - There are no breaking changes in this release. + +Packages with other changes: + + - [`flutter_stripe` - `v9.3.0`](#flutter_stripe---v930) + +--- + +#### `flutter_stripe` - `v9.3.0` + + - a + + - **FIX**: #1233 increase android cardform height to display image (#1254). + - **FEAT**: add retrieveSetupIntent (#1302). + - **FEAT**: release versions (#1283). + - **FEAT**: release 9.2.1 (#1262). + + +## 2023-07-18 + +### Changes + +--- + +Packages with breaking changes: + + - There are no breaking changes in this release. + +Packages with other changes: + + - [`flutter_stripe_web` - `v4.3.0`](#flutter_stripe_web---v430) + +--- + +#### `flutter_stripe_web` - `v4.3.0` + + - a + + - **FEAT**: add retrieveSetupIntent (#1302). + - **FEAT**: release versions (#1283). + - **FEAT**: web fixes and features (#1270). + - **FEAT**: release 9.2.1 (#1262). + + +## 2023-07-18 + +### Changes + +--- + +Packages with breaking changes: + + - There are no breaking changes in this release. + +Packages with other changes: + + - [`stripe_js` - `v3.2.0`](#stripe_js---v320) + - [`flutter_stripe_web` - `v4.2.1`](#flutter_stripe_web---v421) + +Packages with dependency updates only: + +> Packages listed below depend on other packages in this workspace that have had changes. Their versions have been incremented to bump the minimum dependency versions of the packages they depend upon in this project. + + - `flutter_stripe_web` - `v4.2.1` + +--- + +#### `stripe_js` - `v3.2.0` + + - a + + - **FIX**: PaymentConfirmationRedirect enum value (#1221). + - **FIX**: confirmation redirect and stripeAccountId (#1201). + - **FEAT**: release versions (#1283). + - **FEAT**: web fixes and features (#1270). + - **FEAT**: release 9.2.1 (#1262). + - **FEAT**: tokens for web (#1079). + - **FEAT**: stripe js (#1052). + + +## 2023-07-18 + +### Changes + +--- + +Packages with breaking changes: + + - There are no breaking changes in this release. + +Packages with other changes: + + - [`stripe_android` - `v9.3.0`](#stripe_android---v930) + - [`flutter_stripe` - `v9.2.3`](#flutter_stripe---v923) + +Packages with dependency updates only: + +> Packages listed below depend on other packages in this workspace that have had changes. Their versions have been incremented to bump the minimum dependency versions of the packages they depend upon in this project. + + - `flutter_stripe` - `v9.2.3` + +--- + +#### `stripe_android` - `v9.3.0` + + - a + + - **FIX**: #1246 handle empty params on confirmPayment (#1286). + - **FEAT**: add retrieveSetupIntent (#1302). + - **FEAT**: release 9.2.1 (#1262). + + +## 2023-07-18 + +### Changes + +--- + +Packages with breaking changes: + + - There are no breaking changes in this release. + +Packages with other changes: + + - [`stripe_ios` - `v9.3.0`](#stripe_ios---v930) + - [`flutter_stripe` - `v9.2.3`](#flutter_stripe---v923) + +Packages with dependency updates only: + +> Packages listed below depend on other packages in this workspace that have had changes. Their versions have been incremented to bump the minimum dependency versions of the packages they depend upon in this project. + + - `flutter_stripe` - `v9.2.3` + +--- + +#### `stripe_ios` - `v9.3.0` + + - a + + - **FIX**: #1246 handle empty params on confirmPayment (#1286). + - **FEAT**: release 9.2.1 (#1262). + + +## 2023-07-18 + +### Changes + +--- + +Packages with breaking changes: + + - There are no breaking changes in this release. + +Packages with other changes: + + - [`stripe_platform_interface` - `v9.3.0`](#stripe_platform_interface---v930) + - [`flutter_stripe_web` - `v4.2.1`](#flutter_stripe_web---v421) + - [`flutter_stripe` - `v9.2.3`](#flutter_stripe---v923) + +Packages with dependency updates only: + +> Packages listed below depend on other packages in this workspace that have had changes. Their versions have been incremented to bump the minimum dependency versions of the packages they depend upon in this project. + + - `flutter_stripe_web` - `v4.2.1` + - `flutter_stripe` - `v9.2.3` + +--- + +#### `stripe_platform_interface` - `v9.3.0` + + - a + + - **FIX**: #1246 handle empty params on confirmPayment (#1286). + - **FIX**: #1250 incorrectly providing amount to confirmplatformpaysetupintent params (#1255). + - **FEAT**: add retrieveSetupIntent (#1302). + - **FEAT**: release versions (#1283). + - **FEAT**: release 9.2.1 (#1262). + diff --git a/example/macos/Podfile b/example/macos/Podfile index dade8dfad..049abe295 100644 --- a/example/macos/Podfile +++ b/example/macos/Podfile @@ -1,4 +1,4 @@ -platform :osx, '10.11' +platform :osx, '10.14' # CocoaPods analytics sends network stats synchronously affecting flutter build latency. ENV['COCOAPODS_DISABLE_STATS'] = 'true' diff --git a/example/macos/Podfile.lock b/example/macos/Podfile.lock index dedef297c..d4b359af2 100644 --- a/example/macos/Podfile.lock +++ b/example/macos/Podfile.lock @@ -9,8 +9,8 @@ EXTERNAL SOURCES: :path: Flutter/ephemeral SPEC CHECKSUMS: - FlutterMacOS: 57701585bf7de1b3fc2bb61f6378d73bbdea8424 + FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24 -PODFILE CHECKSUM: 6eac6b3292e5142cfc23bdeb71848a40ec51c14c +PODFILE CHECKSUM: 353c8bcc5d5b0994e508d035b5431cfe18c1dea7 -COCOAPODS: 1.11.2 +COCOAPODS: 1.12.1 diff --git a/example/macos/Runner.xcodeproj/project.pbxproj b/example/macos/Runner.xcodeproj/project.pbxproj index 2b5c2cd62..71c9c0fe7 100644 --- a/example/macos/Runner.xcodeproj/project.pbxproj +++ b/example/macos/Runner.xcodeproj/project.pbxproj @@ -3,7 +3,7 @@ archiveVersion = 1; classes = { }; - objectVersion = 51; + objectVersion = 54; objects = { /* Begin PBXAggregateTarget section */ @@ -202,7 +202,7 @@ isa = PBXProject; attributes = { LastSwiftUpdateCheck = 0920; - LastUpgradeCheck = 0930; + LastUpgradeCheck = 1300; ORGANIZATIONNAME = ""; TargetAttributes = { 33CC10EC2044A3C60003C045 = { @@ -255,6 +255,7 @@ /* Begin PBXShellScriptBuildPhase section */ 3399D490228B24CF009A79C7 /* ShellScript */ = { isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; buildActionMask = 2147483647; files = ( ); @@ -386,7 +387,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.11; + MACOSX_DEPLOYMENT_TARGET = 10.14; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = macosx; SWIFT_COMPILATION_MODE = wholemodule; @@ -465,7 +466,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.11; + MACOSX_DEPLOYMENT_TARGET = 10.14; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = macosx; @@ -512,7 +513,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.11; + MACOSX_DEPLOYMENT_TARGET = 10.14; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = macosx; SWIFT_COMPILATION_MODE = wholemodule; diff --git a/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme index ae8ff59d9..7fd7126b0 100644 --- a/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ b/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -1,6 +1,6 @@ Date: Tue, 1 Aug 2023 07:20:30 +0100 Subject: [PATCH 3/3] chore: release stripe ios version 9.3.1 (#1349) Co-authored-by: Remon <> --- CHANGELOG.md | 28 ++++++++++++++++++++++++++++ packages/stripe/pubspec.yaml | 2 +- packages/stripe_ios/CHANGELOG.md | 3 +++ packages/stripe_ios/pubspec.yaml | 2 +- 4 files changed, 33 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9bc237706..a760acb0c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,34 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## 2023-07-31 + +### Changes + +--- + +Packages with breaking changes: + + - There are no breaking changes in this release. + +Packages with other changes: + + - [`stripe_ios` - `v9.3.0+1`](#stripe_ios---v9301) + - [`flutter_stripe` - `v9.3.1`](#flutter_stripe---v931) + +Packages with dependency updates only: + +> Packages listed below depend on other packages in this workspace that have had changes. Their versions have been incremented to bump the minimum dependency versions of the packages they depend upon in this project. + + - `flutter_stripe` - `v9.3.1` + +--- + +#### `stripe_ios` - `v9.3.1` + + - Fix #1325 Stripe conversion issue + + ## 2023-07-18 ### Changes diff --git a/packages/stripe/pubspec.yaml b/packages/stripe/pubspec.yaml index 5592474a8..0d84bd98c 100644 --- a/packages/stripe/pubspec.yaml +++ b/packages/stripe/pubspec.yaml @@ -23,7 +23,7 @@ dependencies: sdk: flutter meta: ^1.8.0 stripe_android: ^9.3.0 - stripe_ios: ^9.3.0 + stripe_ios: ^9.3.1 stripe_platform_interface: ^9.3.0 dev_dependencies: flutter_test: diff --git a/packages/stripe_ios/CHANGELOG.md b/packages/stripe_ios/CHANGELOG.md index 99f6f4daa..298ebcf8a 100644 --- a/packages/stripe_ios/CHANGELOG.md +++ b/packages/stripe_ios/CHANGELOG.md @@ -1,3 +1,6 @@ +## 9.3.1 +- Fix #1325 Paymentsheet conversion issue + ## 9.3.0 **Features** - Add method for retrieve setupintent. diff --git a/packages/stripe_ios/pubspec.yaml b/packages/stripe_ios/pubspec.yaml index 9c975b061..3a2fc6725 100644 --- a/packages/stripe_ios/pubspec.yaml +++ b/packages/stripe_ios/pubspec.yaml @@ -1,6 +1,6 @@ name: stripe_ios description: Stripe platform implementation for iOS -version: 9.3.0 +version: 9.3.1 repository: https://github.com/flutter-stripe/flutter_stripe homepage: https://pub.dev/packages/flutter_stripe