diff --git a/CHANGELOG.md b/CHANGELOG.md index 333236cb..363784ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ -## New version +## 1.1.0 * Added support for renaming payment methods in Drop-in. +* 3DS2 cancellations are now resolved as a PaymentCancelledByUser payment result. +* Improved configuration parsing for Google Pay component. +* Improved instantiation of Apple Pay component. ## 1.0.2 diff --git a/example/lib/screens/component/card/card_advanced_component_screen.dart b/example/lib/screens/component/card/card_advanced_component_screen.dart index cf6f25ce..2fb7d499 100644 --- a/example/lib/screens/component/card/card_advanced_component_screen.dart +++ b/example/lib/screens/component/card/card_advanced_component_screen.dart @@ -22,7 +22,7 @@ class CardAdvancedComponentScreen extends StatelessWidget { shopperLocale: Config.shopperLocale, cardConfiguration: const CardConfiguration( holderNameRequired: true, - addressMode: AddressMode.full + addressMode: AddressMode.full, ), ); diff --git a/ios/Classes/components/card/BaseCardComponent.swift b/ios/Classes/components/card/BaseCardComponent.swift index d054ab06..f2a036ab 100644 --- a/ios/Classes/components/card/BaseCardComponent.swift +++ b/ios/Classes/components/card/BaseCardComponent.swift @@ -141,8 +141,8 @@ class BaseCardComponent: NSObject, FlutterPlatformView, UIScrollViewDelegate { ) } - private func determineAdditionalViewportSpace () -> CGFloat { - if (isStoredPaymentMethod) { + private func determineAdditionalViewportSpace() -> CGFloat { + if isStoredPaymentMethod { return 256.0 } else { return 8.0 diff --git a/ios/Classes/utils/AdyenAppearance.swift b/ios/Classes/utils/AdyenAppearance.swift index ffd24d7e..33b34ceb 100644 --- a/ios/Classes/utils/AdyenAppearance.swift +++ b/ios/Classes/utils/AdyenAppearance.swift @@ -1,16 +1,16 @@ import Adyen public enum AdyenAppearance { - private static var _dropInStyle: Adyen.DropInComponent.Style = Adyen.DropInComponent.Style() - private static var _cardComponentStyle: Adyen.FormComponentStyle = Adyen.FormComponentStyle() + private static var _dropInStyle: Adyen.DropInComponent.Style = .init() + private static var _cardComponentStyle: Adyen.FormComponentStyle = .init() - public static var dropInStyle: Adyen.DropInComponent.Style { - get { return _dropInStyle } - set { _dropInStyle = newValue } - } + public static var dropInStyle: Adyen.DropInComponent.Style { + get { _dropInStyle } + set { _dropInStyle = newValue } + } - public static var cardComponentStyle: Adyen.FormComponentStyle { - get { return _cardComponentStyle } - set { _cardComponentStyle = newValue } - } + public static var cardComponentStyle: Adyen.FormComponentStyle { + get { _cardComponentStyle } + set { _cardComponentStyle = newValue } + } } diff --git a/ios/Classes/utils/ConfigurationMapper.swift b/ios/Classes/utils/ConfigurationMapper.swift index 6e2152a0..a897db5f 100644 --- a/ios/Classes/utils/ConfigurationMapper.swift +++ b/ios/Classes/utils/ConfigurationMapper.swift @@ -1,7 +1,7 @@ @_spi(AdyenInternal) import Adyen -import PassKit import Adyen3DS2.ADYRuntimeError +import PassKit extension DropInConfigurationDTO { func createDropInConfiguration(payment: Payment?) throws -> DropInComponent.Configuration { @@ -275,7 +275,7 @@ extension PaymentResultEnum { } private static func isThree3ds2Cancellation(error: NSError) -> Bool { - return error.domain == ADYRuntimeErrorDomain && error.code == ADYRuntimeErrorCode.challengeCancelled.rawValue + error.domain == ADYRuntimeErrorDomain && error.code == ADYRuntimeErrorCode.challengeCancelled.rawValue } } diff --git a/lib/src/drop_in/model/drop_in_configuration.dart b/lib/src/drop_in/model/drop_in_configuration.dart index fe92ebb0..578b712c 100644 --- a/lib/src/drop_in/model/drop_in_configuration.dart +++ b/lib/src/drop_in/model/drop_in_configuration.dart @@ -33,4 +33,4 @@ final class DropInConfiguration extends BaseConfiguration { this.paymentMethodNames, }) : skipListWhenSinglePaymentMethod = skipListWhenSinglePaymentMethod ?? false; -} \ No newline at end of file +} diff --git a/lib/src/generated/platform_api.g.dart b/lib/src/generated/platform_api.g.dart index 3b52b5a1..ef538d97 100644 --- a/lib/src/generated/platform_api.g.dart +++ b/lib/src/generated/platform_api.g.dart @@ -15,7 +15,8 @@ PlatformException _createConnectionError(String channelName) { ); } -List wrapResponse({Object? result, PlatformException? error, bool empty = false}) { +List wrapResponse( + {Object? result, PlatformException? error, bool empty = false}) { if (empty) { return []; } @@ -290,12 +291,14 @@ class DropInConfigurationDTO { cashAppPayConfigurationDTO: result[8] != null ? CashAppPayConfigurationDTO.decode(result[8]! as List) : null, - analyticsOptionsDTO: AnalyticsOptionsDTO.decode(result[9]! as List), + analyticsOptionsDTO: + AnalyticsOptionsDTO.decode(result[9]! as List), showPreselectedStoredPaymentMethod: result[10]! as bool, skipListWhenSinglePaymentMethod: result[11]! as bool, isRemoveStoredPaymentMethodEnabled: result[12]! as bool, preselectedPaymentMethodTitle: result[13] as String?, - paymentMethodNames: (result[14] as Map?)?.cast(), + paymentMethodNames: + (result[14] as Map?)?.cast(), ); } } @@ -350,7 +353,8 @@ class CardConfigurationDTO { showCvcForStoredCard: result[3]! as bool, showCvc: result[4]! as bool, kcpFieldVisibility: FieldVisibility.values[result[5]! as int], - socialSecurityNumberFieldVisibility: FieldVisibility.values[result[6]! as int], + socialSecurityNumberFieldVisibility: + FieldVisibility.values[result[6]! as int], supportedCardTypes: (result[7] as List?)!.cast(), ); } @@ -427,12 +431,15 @@ class ApplePayConfigurationDTO { merchantId: result[0]! as String, merchantName: result[1]! as String, allowOnboarding: result[2] as bool?, - summaryItems: (result[3] as List?)?.cast(), - requiredBillingContactFields: (result[4] as List?)?.cast(), + summaryItems: + (result[3] as List?)?.cast(), + requiredBillingContactFields: + (result[4] as List?)?.cast(), billingContact: result[5] != null ? ApplePayContactDTO.decode(result[5]! as List) : null, - requiredShippingContactFields: (result[6] as List?)?.cast(), + requiredShippingContactFields: + (result[6] as List?)?.cast(), shippingContact: result[7] != null ? ApplePayContactDTO.decode(result[7]! as List) : null, @@ -440,7 +447,8 @@ class ApplePayConfigurationDTO { ? ApplePayShippingType.values[result[8]! as int] : null, allowShippingContactEditing: result[9] as bool?, - shippingMethods: (result[10] as List?)?.cast(), + shippingMethods: + (result[10] as List?)?.cast(), applicationData: result[11] as String?, supportedCountries: (result[12] as List?)?.cast(), merchantCapability: result[13] != null @@ -690,9 +698,8 @@ class GooglePayConfigurationDTO { merchantInfoDTO: result[2] != null ? MerchantInfoDTO.decode(result[2]! as List) : null, - totalPriceStatus: result[3] != null - ? TotalPriceStatus.values[result[3]! as int] - : null, + totalPriceStatus: + result[3] != null ? TotalPriceStatus.values[result[3]! as int] : null, allowedCardNetworks: (result[4] as List?)?.cast(), allowedAuthMethods: (result[5] as List?)?.cast(), allowPrepaidCards: result[6] as bool?, @@ -1033,7 +1040,8 @@ class PaymentEventDTO { return PaymentEventDTO( paymentEventType: PaymentEventType.values[result[0]! as int], result: result[1] as String?, - actionResponse: (result[2] as Map?)?.cast(), + actionResponse: + (result[2] as Map?)?.cast(), error: result[3] != null ? ErrorDTO.decode(result[3]! as List) : null, @@ -1145,8 +1153,10 @@ class CardComponentConfigurationDTO { ? AmountDTO.decode(result[3]! as List) : null, shopperLocale: result[4] as String?, - cardConfiguration: CardConfigurationDTO.decode(result[5]! as List), - analyticsOptionsDTO: AnalyticsOptionsDTO.decode(result[6]! as List), + cardConfiguration: + CardConfigurationDTO.decode(result[5]! as List), + analyticsOptionsDTO: + AnalyticsOptionsDTO.decode(result[6]! as List), ); } } @@ -1207,7 +1217,8 @@ class InstantPaymentConfigurationDTO { ? AmountDTO.decode(result[4]! as List) : null, shopperLocale: result[5] as String?, - analyticsOptionsDTO: AnalyticsOptionsDTO.decode(result[6]! as List), + analyticsOptionsDTO: + AnalyticsOptionsDTO.decode(result[6]! as List), googlePayConfigurationDTO: result[7] != null ? GooglePayConfigurationDTO.decode(result[7]! as List) : null, @@ -1359,7 +1370,8 @@ class ActionComponentConfigurationDTO { amount: result[3] != null ? AmountDTO.decode(result[3]! as List) : null, - analyticsOptionsDTO: AnalyticsOptionsDTO.decode(result[4]! as List), + analyticsOptionsDTO: + AnalyticsOptionsDTO.decode(result[4]! as List), ); } } @@ -1460,61 +1472,61 @@ class _CheckoutPlatformInterfaceCodec extends StandardMessageCodec { @override Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { - case 128: + case 128: return ActionComponentConfigurationDTO.decode(readValue(buffer)!); - case 129: + case 129: return AmountDTO.decode(readValue(buffer)!); - case 130: + case 130: return AnalyticsOptionsDTO.decode(readValue(buffer)!); - case 131: + case 131: return ApplePayConfigurationDTO.decode(readValue(buffer)!); - case 132: + case 132: return ApplePayContactDTO.decode(readValue(buffer)!); - case 133: + case 133: return ApplePayShippingMethodDTO.decode(readValue(buffer)!); - case 134: + case 134: return ApplePaySummaryItemDTO.decode(readValue(buffer)!); - case 135: + case 135: return BillingAddressParametersDTO.decode(readValue(buffer)!); - case 136: + case 136: return CardComponentConfigurationDTO.decode(readValue(buffer)!); - case 137: + case 137: return CardConfigurationDTO.decode(readValue(buffer)!); - case 138: + case 138: return CashAppPayConfigurationDTO.decode(readValue(buffer)!); - case 139: + case 139: return ComponentCommunicationModel.decode(readValue(buffer)!); - case 140: + case 140: return DeletedStoredPaymentMethodResultDTO.decode(readValue(buffer)!); - case 141: + case 141: return DropInConfigurationDTO.decode(readValue(buffer)!); - case 142: + case 142: return EncryptedCardDTO.decode(readValue(buffer)!); - case 143: + case 143: return ErrorDTO.decode(readValue(buffer)!); - case 144: + case 144: return GooglePayConfigurationDTO.decode(readValue(buffer)!); - case 145: + case 145: return InstantPaymentConfigurationDTO.decode(readValue(buffer)!); - case 146: + case 146: return InstantPaymentSetupResultDTO.decode(readValue(buffer)!); - case 147: + case 147: return MerchantInfoDTO.decode(readValue(buffer)!); - case 148: + case 148: return OrderResponseDTO.decode(readValue(buffer)!); - case 149: + case 149: return PaymentEventDTO.decode(readValue(buffer)!); - case 150: + case 150: return PaymentResultDTO.decode(readValue(buffer)!); - case 151: + case 151: return PaymentResultModelDTO.decode(readValue(buffer)!); - case 152: + case 152: return PlatformCommunicationModel.decode(readValue(buffer)!); - case 153: + case 153: return SessionDTO.decode(readValue(buffer)!); - case 154: + case 154: return ShippingAddressParametersDTO.decode(readValue(buffer)!); - case 155: + case 155: return UnencryptedCardDTO.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); @@ -1530,11 +1542,14 @@ class CheckoutPlatformInterface { : __pigeon_binaryMessenger = binaryMessenger; final BinaryMessenger? __pigeon_binaryMessenger; - static const MessageCodec pigeonChannelCodec = _CheckoutPlatformInterfaceCodec(); + static const MessageCodec pigeonChannelCodec = + _CheckoutPlatformInterfaceCodec(); Future getReturnUrl() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.adyen_checkout.CheckoutPlatformInterface.getReturnUrl'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.adyen_checkout.CheckoutPlatformInterface.getReturnUrl'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -1559,15 +1574,19 @@ class CheckoutPlatformInterface { } } - Future createSession(String sessionId, String sessionData, Object? configuration) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.adyen_checkout.CheckoutPlatformInterface.createSession'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future createSession( + String sessionId, String sessionData, Object? configuration) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.adyen_checkout.CheckoutPlatformInterface.createSession'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([sessionId, sessionData, configuration]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([sessionId, sessionData, configuration]) + as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -1587,8 +1606,10 @@ class CheckoutPlatformInterface { } Future invalidateSession() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.adyen_checkout.CheckoutPlatformInterface.invalidateSession'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.adyen_checkout.CheckoutPlatformInterface.invalidateSession'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -1608,15 +1629,18 @@ class CheckoutPlatformInterface { } } - Future encryptCard(UnencryptedCardDTO unencryptedCardDTO, String publicKey) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.adyen_checkout.CheckoutPlatformInterface.encryptCard'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future encryptCard( + UnencryptedCardDTO unencryptedCardDTO, String publicKey) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.adyen_checkout.CheckoutPlatformInterface.encryptCard'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([unencryptedCardDTO, publicKey]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([unencryptedCardDTO, publicKey]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -1636,14 +1660,16 @@ class CheckoutPlatformInterface { } Future encryptBin(String bin, String publicKey) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.adyen_checkout.CheckoutPlatformInterface.encryptBin'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.adyen_checkout.CheckoutPlatformInterface.encryptBin'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([bin, publicKey]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([bin, publicKey]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -1663,14 +1689,16 @@ class CheckoutPlatformInterface { } Future enableConsoleLogging(bool loggingEnabled) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.adyen_checkout.CheckoutPlatformInterface.enableConsoleLogging'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.adyen_checkout.CheckoutPlatformInterface.enableConsoleLogging'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([loggingEnabled]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([loggingEnabled]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -1748,39 +1776,39 @@ class _DropInPlatformInterfaceCodec extends StandardMessageCodec { @override Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { - case 128: + case 128: return AmountDTO.decode(readValue(buffer)!); - case 129: + case 129: return AmountDTO.decode(readValue(buffer)!); - case 130: + case 130: return AnalyticsOptionsDTO.decode(readValue(buffer)!); - case 131: + case 131: return ApplePayConfigurationDTO.decode(readValue(buffer)!); - case 132: + case 132: return ApplePayContactDTO.decode(readValue(buffer)!); - case 133: + case 133: return ApplePayShippingMethodDTO.decode(readValue(buffer)!); - case 134: + case 134: return ApplePaySummaryItemDTO.decode(readValue(buffer)!); - case 135: + case 135: return BillingAddressParametersDTO.decode(readValue(buffer)!); - case 136: + case 136: return CardConfigurationDTO.decode(readValue(buffer)!); - case 137: + case 137: return CashAppPayConfigurationDTO.decode(readValue(buffer)!); - case 138: + case 138: return DeletedStoredPaymentMethodResultDTO.decode(readValue(buffer)!); - case 139: + case 139: return DropInConfigurationDTO.decode(readValue(buffer)!); - case 140: + case 140: return ErrorDTO.decode(readValue(buffer)!); - case 141: + case 141: return GooglePayConfigurationDTO.decode(readValue(buffer)!); - case 142: + case 142: return MerchantInfoDTO.decode(readValue(buffer)!); - case 143: + case 143: return PaymentEventDTO.decode(readValue(buffer)!); - case 144: + case 144: return ShippingAddressParametersDTO.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); @@ -1796,17 +1824,21 @@ class DropInPlatformInterface { : __pigeon_binaryMessenger = binaryMessenger; final BinaryMessenger? __pigeon_binaryMessenger; - static const MessageCodec pigeonChannelCodec = _DropInPlatformInterfaceCodec(); + static const MessageCodec pigeonChannelCodec = + _DropInPlatformInterfaceCodec(); - Future showDropInSession(DropInConfigurationDTO dropInConfigurationDTO) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.adyen_checkout.DropInPlatformInterface.showDropInSession'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future showDropInSession( + DropInConfigurationDTO dropInConfigurationDTO) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.adyen_checkout.DropInPlatformInterface.showDropInSession'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([dropInConfigurationDTO]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([dropInConfigurationDTO]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -1820,15 +1852,19 @@ class DropInPlatformInterface { } } - Future showDropInAdvanced(DropInConfigurationDTO dropInConfigurationDTO, String paymentMethodsResponse) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.adyen_checkout.DropInPlatformInterface.showDropInAdvanced'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future showDropInAdvanced(DropInConfigurationDTO dropInConfigurationDTO, + String paymentMethodsResponse) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.adyen_checkout.DropInPlatformInterface.showDropInAdvanced'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([dropInConfigurationDTO, paymentMethodsResponse]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([dropInConfigurationDTO, paymentMethodsResponse]) + as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -1843,14 +1879,16 @@ class DropInPlatformInterface { } Future onPaymentsResult(PaymentEventDTO paymentsResult) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.adyen_checkout.DropInPlatformInterface.onPaymentsResult'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.adyen_checkout.DropInPlatformInterface.onPaymentsResult'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([paymentsResult]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([paymentsResult]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -1864,15 +1902,18 @@ class DropInPlatformInterface { } } - Future onPaymentsDetailsResult(PaymentEventDTO paymentsDetailsResult) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.adyen_checkout.DropInPlatformInterface.onPaymentsDetailsResult'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future onPaymentsDetailsResult( + PaymentEventDTO paymentsDetailsResult) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.adyen_checkout.DropInPlatformInterface.onPaymentsDetailsResult'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([paymentsDetailsResult]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([paymentsDetailsResult]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -1886,15 +1927,19 @@ class DropInPlatformInterface { } } - Future onDeleteStoredPaymentMethodResult(DeletedStoredPaymentMethodResultDTO deleteStoredPaymentMethodResultDTO) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.adyen_checkout.DropInPlatformInterface.onDeleteStoredPaymentMethodResult'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future onDeleteStoredPaymentMethodResult( + DeletedStoredPaymentMethodResultDTO + deleteStoredPaymentMethodResultDTO) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.adyen_checkout.DropInPlatformInterface.onDeleteStoredPaymentMethodResult'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([deleteStoredPaymentMethodResultDTO]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([deleteStoredPaymentMethodResultDTO]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -1909,8 +1954,10 @@ class DropInPlatformInterface { } Future cleanUpDropIn() async { - const String __pigeon_channelName = 'dev.flutter.pigeon.adyen_checkout.DropInPlatformInterface.cleanUpDropIn'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.adyen_checkout.DropInPlatformInterface.cleanUpDropIn'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -1958,15 +2005,15 @@ class _DropInFlutterInterfaceCodec extends StandardMessageCodec { @override Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { - case 128: + case 128: return AmountDTO.decode(readValue(buffer)!); - case 129: + case 129: return OrderResponseDTO.decode(readValue(buffer)!); - case 130: + case 130: return PaymentResultDTO.decode(readValue(buffer)!); - case 131: + case 131: return PaymentResultModelDTO.decode(readValue(buffer)!); - case 132: + case 132: return PlatformCommunicationModel.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); @@ -1975,59 +2022,73 @@ class _DropInFlutterInterfaceCodec extends StandardMessageCodec { } abstract class DropInFlutterInterface { - static const MessageCodec pigeonChannelCodec = _DropInFlutterInterfaceCodec(); + static const MessageCodec pigeonChannelCodec = + _DropInFlutterInterfaceCodec(); - void onDropInSessionPlatformCommunication(PlatformCommunicationModel platformCommunicationModel); + void onDropInSessionPlatformCommunication( + PlatformCommunicationModel platformCommunicationModel); - void onDropInAdvancedPlatformCommunication(PlatformCommunicationModel platformCommunicationModel); + void onDropInAdvancedPlatformCommunication( + PlatformCommunicationModel platformCommunicationModel); - static void setup(DropInFlutterInterface? api, {BinaryMessenger? binaryMessenger}) { + static void setup(DropInFlutterInterface? api, + {BinaryMessenger? binaryMessenger}) { { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.adyen_checkout.DropInFlutterInterface.onDropInSessionPlatformCommunication', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.adyen_checkout.DropInFlutterInterface.onDropInSessionPlatformCommunication', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { __pigeon_channel.setMessageHandler(null); } else { __pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.adyen_checkout.DropInFlutterInterface.onDropInSessionPlatformCommunication was null.'); + 'Argument for dev.flutter.pigeon.adyen_checkout.DropInFlutterInterface.onDropInSessionPlatformCommunication was null.'); final List args = (message as List?)!; - final PlatformCommunicationModel? arg_platformCommunicationModel = (args[0] as PlatformCommunicationModel?); + final PlatformCommunicationModel? arg_platformCommunicationModel = + (args[0] as PlatformCommunicationModel?); assert(arg_platformCommunicationModel != null, 'Argument for dev.flutter.pigeon.adyen_checkout.DropInFlutterInterface.onDropInSessionPlatformCommunication was null, expected non-null PlatformCommunicationModel.'); try { - api.onDropInSessionPlatformCommunication(arg_platformCommunicationModel!); + api.onDropInSessionPlatformCommunication( + arg_platformCommunicationModel!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.adyen_checkout.DropInFlutterInterface.onDropInAdvancedPlatformCommunication', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.adyen_checkout.DropInFlutterInterface.onDropInAdvancedPlatformCommunication', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { __pigeon_channel.setMessageHandler(null); } else { __pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.adyen_checkout.DropInFlutterInterface.onDropInAdvancedPlatformCommunication was null.'); + 'Argument for dev.flutter.pigeon.adyen_checkout.DropInFlutterInterface.onDropInAdvancedPlatformCommunication was null.'); final List args = (message as List?)!; - final PlatformCommunicationModel? arg_platformCommunicationModel = (args[0] as PlatformCommunicationModel?); + final PlatformCommunicationModel? arg_platformCommunicationModel = + (args[0] as PlatformCommunicationModel?); assert(arg_platformCommunicationModel != null, 'Argument for dev.flutter.pigeon.adyen_checkout.DropInFlutterInterface.onDropInAdvancedPlatformCommunication was null, expected non-null PlatformCommunicationModel.'); try { - api.onDropInAdvancedPlatformCommunication(arg_platformCommunicationModel!); + api.onDropInAdvancedPlatformCommunication( + arg_platformCommunicationModel!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString())); } }); } @@ -2131,61 +2192,61 @@ class _ComponentPlatformInterfaceCodec extends StandardMessageCodec { @override Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { - case 128: + case 128: return ActionComponentConfigurationDTO.decode(readValue(buffer)!); - case 129: + case 129: return AmountDTO.decode(readValue(buffer)!); - case 130: + case 130: return AnalyticsOptionsDTO.decode(readValue(buffer)!); - case 131: + case 131: return ApplePayConfigurationDTO.decode(readValue(buffer)!); - case 132: + case 132: return ApplePayContactDTO.decode(readValue(buffer)!); - case 133: + case 133: return ApplePayShippingMethodDTO.decode(readValue(buffer)!); - case 134: + case 134: return ApplePaySummaryItemDTO.decode(readValue(buffer)!); - case 135: + case 135: return BillingAddressParametersDTO.decode(readValue(buffer)!); - case 136: + case 136: return CardComponentConfigurationDTO.decode(readValue(buffer)!); - case 137: + case 137: return CardConfigurationDTO.decode(readValue(buffer)!); - case 138: + case 138: return CashAppPayConfigurationDTO.decode(readValue(buffer)!); - case 139: + case 139: return ComponentCommunicationModel.decode(readValue(buffer)!); - case 140: + case 140: return DeletedStoredPaymentMethodResultDTO.decode(readValue(buffer)!); - case 141: + case 141: return DropInConfigurationDTO.decode(readValue(buffer)!); - case 142: + case 142: return EncryptedCardDTO.decode(readValue(buffer)!); - case 143: + case 143: return ErrorDTO.decode(readValue(buffer)!); - case 144: + case 144: return GooglePayConfigurationDTO.decode(readValue(buffer)!); - case 145: + case 145: return InstantPaymentConfigurationDTO.decode(readValue(buffer)!); - case 146: + case 146: return InstantPaymentSetupResultDTO.decode(readValue(buffer)!); - case 147: + case 147: return MerchantInfoDTO.decode(readValue(buffer)!); - case 148: + case 148: return OrderResponseDTO.decode(readValue(buffer)!); - case 149: + case 149: return PaymentEventDTO.decode(readValue(buffer)!); - case 150: + case 150: return PaymentResultDTO.decode(readValue(buffer)!); - case 151: + case 151: return PaymentResultModelDTO.decode(readValue(buffer)!); - case 152: + case 152: return PlatformCommunicationModel.decode(readValue(buffer)!); - case 153: + case 153: return SessionDTO.decode(readValue(buffer)!); - case 154: + case 154: return ShippingAddressParametersDTO.decode(readValue(buffer)!); - case 155: + case 155: return UnencryptedCardDTO.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); @@ -2201,11 +2262,14 @@ class ComponentPlatformInterface { : __pigeon_binaryMessenger = binaryMessenger; final BinaryMessenger? __pigeon_binaryMessenger; - static const MessageCodec pigeonChannelCodec = _ComponentPlatformInterfaceCodec(); + static const MessageCodec pigeonChannelCodec = + _ComponentPlatformInterfaceCodec(); Future updateViewHeight(int viewId) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.adyen_checkout.ComponentPlatformInterface.updateViewHeight'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.adyen_checkout.ComponentPlatformInterface.updateViewHeight'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -2225,15 +2289,18 @@ class ComponentPlatformInterface { } } - Future onPaymentsResult(String componentId, PaymentEventDTO paymentsResult) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.adyen_checkout.ComponentPlatformInterface.onPaymentsResult'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future onPaymentsResult( + String componentId, PaymentEventDTO paymentsResult) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.adyen_checkout.ComponentPlatformInterface.onPaymentsResult'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([componentId, paymentsResult]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([componentId, paymentsResult]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -2247,15 +2314,18 @@ class ComponentPlatformInterface { } } - Future onPaymentsDetailsResult(String componentId, PaymentEventDTO paymentsDetailsResult) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.adyen_checkout.ComponentPlatformInterface.onPaymentsDetailsResult'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future onPaymentsDetailsResult( + String componentId, PaymentEventDTO paymentsDetailsResult) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.adyen_checkout.ComponentPlatformInterface.onPaymentsDetailsResult'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([componentId, paymentsDetailsResult]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([componentId, paymentsDetailsResult]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -2269,15 +2339,24 @@ class ComponentPlatformInterface { } } - Future isInstantPaymentSupportedByPlatform(InstantPaymentConfigurationDTO instantPaymentConfigurationDTO, String paymentMethodResponse, String componentId) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.adyen_checkout.ComponentPlatformInterface.isInstantPaymentSupportedByPlatform'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future isInstantPaymentSupportedByPlatform( + InstantPaymentConfigurationDTO instantPaymentConfigurationDTO, + String paymentMethodResponse, + String componentId) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.adyen_checkout.ComponentPlatformInterface.isInstantPaymentSupportedByPlatform'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([instantPaymentConfigurationDTO, paymentMethodResponse, componentId]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([ + instantPaymentConfigurationDTO, + paymentMethodResponse, + componentId + ]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -2296,15 +2375,24 @@ class ComponentPlatformInterface { } } - Future onInstantPaymentPressed(InstantPaymentConfigurationDTO instantPaymentConfigurationDTO, String encodedPaymentMethod, String componentId) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.adyen_checkout.ComponentPlatformInterface.onInstantPaymentPressed'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future onInstantPaymentPressed( + InstantPaymentConfigurationDTO instantPaymentConfigurationDTO, + String encodedPaymentMethod, + String componentId) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.adyen_checkout.ComponentPlatformInterface.onInstantPaymentPressed'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([instantPaymentConfigurationDTO, encodedPaymentMethod, componentId]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([ + instantPaymentConfigurationDTO, + encodedPaymentMethod, + componentId + ]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -2318,15 +2406,24 @@ class ComponentPlatformInterface { } } - Future handleAction(ActionComponentConfigurationDTO actionComponentConfiguration, String componentId, Map? actionResponse) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.adyen_checkout.ComponentPlatformInterface.handleAction'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + Future handleAction( + ActionComponentConfigurationDTO actionComponentConfiguration, + String componentId, + Map? actionResponse) async { + const String __pigeon_channelName = + 'dev.flutter.pigeon.adyen_checkout.ComponentPlatformInterface.handleAction'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([actionComponentConfiguration, componentId, actionResponse]) as List?; + final List? __pigeon_replyList = await __pigeon_channel + .send([ + actionComponentConfiguration, + componentId, + actionResponse + ]) as List?; if (__pigeon_replyList == null) { throw _createConnectionError(__pigeon_channelName); } else if (__pigeon_replyList.length > 1) { @@ -2341,8 +2438,10 @@ class ComponentPlatformInterface { } Future onDispose(String componentId) async { - const String __pigeon_channelName = 'dev.flutter.pigeon.adyen_checkout.ComponentPlatformInterface.onDispose'; - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( + const String __pigeon_channelName = + 'dev.flutter.pigeon.adyen_checkout.ComponentPlatformInterface.onDispose'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( __pigeon_channelName, pigeonChannelCodec, binaryMessenger: __pigeon_binaryMessenger, @@ -2402,23 +2501,23 @@ class _ComponentFlutterInterfaceCodec extends StandardMessageCodec { @override Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { - case 128: + case 128: return AmountDTO.decode(readValue(buffer)!); - case 129: + case 129: return AnalyticsOptionsDTO.decode(readValue(buffer)!); - case 130: + case 130: return CardComponentConfigurationDTO.decode(readValue(buffer)!); - case 131: + case 131: return CardConfigurationDTO.decode(readValue(buffer)!); - case 132: + case 132: return ComponentCommunicationModel.decode(readValue(buffer)!); - case 133: + case 133: return OrderResponseDTO.decode(readValue(buffer)!); - case 134: + case 134: return PaymentResultDTO.decode(readValue(buffer)!); - case 135: + case 135: return PaymentResultModelDTO.decode(readValue(buffer)!); - case 136: + case 136: return SessionDTO.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); @@ -2427,53 +2526,67 @@ class _ComponentFlutterInterfaceCodec extends StandardMessageCodec { } abstract class ComponentFlutterInterface { - static const MessageCodec pigeonChannelCodec = _ComponentFlutterInterfaceCodec(); + static const MessageCodec pigeonChannelCodec = + _ComponentFlutterInterfaceCodec(); - void _generateCodecForDTOs(CardComponentConfigurationDTO cardComponentConfigurationDTO, SessionDTO sessionDTO); + void _generateCodecForDTOs( + CardComponentConfigurationDTO cardComponentConfigurationDTO, + SessionDTO sessionDTO); - void onComponentCommunication(ComponentCommunicationModel componentCommunicationModel); + void onComponentCommunication( + ComponentCommunicationModel componentCommunicationModel); - static void setup(ComponentFlutterInterface? api, {BinaryMessenger? binaryMessenger}) { + static void setup(ComponentFlutterInterface? api, + {BinaryMessenger? binaryMessenger}) { { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.adyen_checkout.ComponentFlutterInterface._generateCodecForDTOs', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.adyen_checkout.ComponentFlutterInterface._generateCodecForDTOs', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { __pigeon_channel.setMessageHandler(null); } else { __pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.adyen_checkout.ComponentFlutterInterface._generateCodecForDTOs was null.'); + 'Argument for dev.flutter.pigeon.adyen_checkout.ComponentFlutterInterface._generateCodecForDTOs was null.'); final List args = (message as List?)!; - final CardComponentConfigurationDTO? arg_cardComponentConfigurationDTO = (args[0] as CardComponentConfigurationDTO?); + final CardComponentConfigurationDTO? + arg_cardComponentConfigurationDTO = + (args[0] as CardComponentConfigurationDTO?); assert(arg_cardComponentConfigurationDTO != null, 'Argument for dev.flutter.pigeon.adyen_checkout.ComponentFlutterInterface._generateCodecForDTOs was null, expected non-null CardComponentConfigurationDTO.'); final SessionDTO? arg_sessionDTO = (args[1] as SessionDTO?); assert(arg_sessionDTO != null, 'Argument for dev.flutter.pigeon.adyen_checkout.ComponentFlutterInterface._generateCodecForDTOs was null, expected non-null SessionDTO.'); try { - api._generateCodecForDTOs(arg_cardComponentConfigurationDTO!, arg_sessionDTO!); + api._generateCodecForDTOs( + arg_cardComponentConfigurationDTO!, arg_sessionDTO!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString())); } }); } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel( - 'dev.flutter.pigeon.adyen_checkout.ComponentFlutterInterface.onComponentCommunication', pigeonChannelCodec, + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.adyen_checkout.ComponentFlutterInterface.onComponentCommunication', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { __pigeon_channel.setMessageHandler(null); } else { __pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.adyen_checkout.ComponentFlutterInterface.onComponentCommunication was null.'); + 'Argument for dev.flutter.pigeon.adyen_checkout.ComponentFlutterInterface.onComponentCommunication was null.'); final List args = (message as List?)!; - final ComponentCommunicationModel? arg_componentCommunicationModel = (args[0] as ComponentCommunicationModel?); + final ComponentCommunicationModel? arg_componentCommunicationModel = + (args[0] as ComponentCommunicationModel?); assert(arg_componentCommunicationModel != null, 'Argument for dev.flutter.pigeon.adyen_checkout.ComponentFlutterInterface.onComponentCommunication was null, expected non-null ComponentCommunicationModel.'); try { @@ -2481,8 +2594,9 @@ abstract class ComponentFlutterInterface { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { - return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString())); } }); } diff --git a/lib/src/util/dto_mapper.dart b/lib/src/util/dto_mapper.dart index 3e466288..2e20310a 100644 --- a/lib/src/util/dto_mapper.dart +++ b/lib/src/util/dto_mapper.dart @@ -30,7 +30,7 @@ extension DropInConfigurationMapper on DropInConfiguration { true, skipListWhenSinglePaymentMethod: skipListWhenSinglePaymentMethod, preselectedPaymentMethodTitle: preselectedPaymentMethodTitle, - paymentMethodNames: paymentMethodNames + paymentMethodNames: paymentMethodNames, ); bool _isRemoveStoredPaymentMethodEnabled( diff --git a/pubspec.yaml b/pubspec.yaml index 1c4030a6..baa47dad 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: adyen_checkout description: Adyen checkout library for Flutter. Accept payments with cards, wallets and local payment methods in your app using our Drop-in and Components. -version: 1.0.2 +version: 1.1.0 repository: https://github.com/Adyen/adyen-flutter issue_tracker: https://github.com/Adyen/adyen-flutter/issues documentation: https://docs.adyen.com/online-payments/build-your-integration