AffirmComponent.style
,AffirmComponent.shopperInformation
andAffirmComponent.localizationParameters
moved into newconfiguration
propertyAffirmComponent.Configuration
;DokuComponent.style
,DokuComponent.shopperInformation
andDokuComponent.localizationParameters
moved into newconfiguration
propertyDokuComponent.Configuration
;MBWayComponent.style
,MBWayComponent.shopperInformation
andMBWayComponent.localizationParameters
moved into newconfiguration
propertyMBWayComponent.Configuration
;QiwiWalletComponent.style
andQiwiWalletComponent.localizationParameters
moved into newconfiguration
propertyQiwiWalletComponent.Configuration
;BasicPersonalInfoFormComponent.style
andBasicPersonalInfoFormComponent.localizationParameters
moved into newconfiguration
propertyBasicPersonalInfoFormComponent.Configuration
;ACHDirectDebitComponent.style
,ACHDirectDebitComponent.shopperInformation
andACHDirectDebitComponent.localizationParameters
moved into theconfiguration
propertyACHDirectDebitComponent.Configuration
;BACSDirectDebitComponent.style
,BACSDirectDebitComponent.shopperInformation
andBACSDirectDebitComponent.localizationParameters
moved into theconfiguration
propertyBACSDirectDebitComponent.Configuration
;BLIKComponent.style
andBLIKComponent.localizationParameters
moved into newconfiguration
propertyBLIKComponent.Configuration
;BoletoComponent.style
,BoletoComponent.shopperInformation
andBoletoComponent.localizationParameters
moved into theconfiguration
propertyBoletoComponent.Configuration
;IssuerListComponent.style
andIssuerListComponent.localizationParameters
moved into newconfiguration
propertyIssuerListComponent.Configuration
;SEPADirectDebitComponent.style
andSEPADirectDebitComponent.localizationParameters
moved into newconfiguration
propertySEPADirectDebitComponent.Configuration
;ThreeDS2Component.appearanceConfiguration
andThreeDS2Component.redirectComponentStyle
moved toThreeDS2Component.configuration
;CardComponent.style
,CardComponent.shopperInformation
andCardComponent.localizationParameters
moved into theconfiguration
propertyCardComponent.Configuration
;DropInComponent.style
moved into theconfiguration
propertyDropInComponent.Configuration
;AwaitComponent.style
andAwaitComponent.localizationParameters
moved toAwaitComponent.configuration
;QRCodeComponent.style
andQRCodeComponent.localizationParameters
moved toQRCodeComponent.configuration
;VoucherComponent.style
andVoucherComponent.localizationParameters
moved toVoucherComponent.configuration
;RedirectComponent.style
moved toRedirectComponent.configuration
;DocumentComponent.style
andDocumentComponent.localizationParameters
moved toDocumentComponent.configuration
;DropInComponentDelegate
has been refactored to be more transparent about which action component or payment component caused the call back;- Method
didFinalize(with success: Bool)
forFinalizableComponent
changed todidFinalize(with success: Bool, completion: (() -> Void)?)
; - Helper method
finalizeIfNeeded(with success: Bool)
forComponent
changed tofinalizeIfNeeded(with success: Bool, completion: (() -> Void)?)
; - In
ApplePayComponent.Configuration
init parameterpayment: Payment
changed topayment: ApplePayPayment
; - All properties (except for
payment
andmerchantIdentifier
) are removed fromApplePayComponent.Configuration.init()
and become mutable; - Refactor
didOpenExternalApplication(_ component:
intodidOpenExternalApplication(component:
; APIContext.init(environment: AnyAPIEnvironment, clientKey: String)
nowthrows
exception if client key is invalid;- Method
requestOrder(_ component: Component, completion: @escaping (Result<PartialPaymentOrder, Error>) -> Void)
changed torequestOrder(for component: Component, completion: @escaping (Result<PartialPaymentOrder, Error>) -> Void)
- Method
cancelOrder(_ order: PartialPaymentOrder)
changed tocancelOrder(_ order: PartialPaymentOrder, component: Component)
CardPaymentMethod.brands
is now a strongly typed Array ofCardType
.StoredCardPaymentMethod.brands
is now a strongly typed Array ofCardType
.StoredCardPaymentMethod.brand
is now a strongly typedCardType
.PaymentMethods
now has a convenient functionoverrideDisplayInformation(ofPaymentMethod:with:)
to override a specific payment method title/subtitle in the DropIn list.- Every component needs to be initialized with an
AdyenContext
instance that defines the behavior for a payment flow. AnalyticsConfiguration
is the object that defines the behavior of analytics within the SDK. Merchants can enable/disable analytics.CardComponentDelegate.didChangeBIN(:component:)
provides the 8 digit bin in case the PAN is greater than 16 digits.CardComponentDelegate.didSubmit(lastFour:finalBIN:component)
now has a new parameterfinalBIN
that provides the final BIN after shopper submits the card details.
amountToPay
property ofPaymentComponentData
has been deprecated. Use toamount
property if needed.
- The
didComplete
method signature ofAdyenSessionDelegate
has changed. You must replacedidComplete(with resultCode: SessionPaymentResultCode, component: Component, session: AdyenSession)
withdidComplete(with result: AdyenSessionResult, component: Component, session: AdyenSession)
. Use theresultCode
inside of theAdyenSessionResult
if needed.