telephoneNumberproperty ofPrefilledShopperInformationhas been deprecated. Use tophoneNumberproperty if needed.
- The
didCompletemethod signature ofAdyenSessionDelegatehas changed. You must replacedidComplete(with resultCode: SessionPaymentResultCode, component: Component, session: AdyenSession)withdidComplete(with result: AdyenSessionResult, component: Component, session: AdyenSession). Use theresultCodeinside of theAdyenSessionResultif needed.
amountToPayproperty ofPaymentComponentDatahas been deprecated. Use toamountproperty if needed.
AffirmComponent.style,AffirmComponent.shopperInformationandAffirmComponent.localizationParametersmoved into newconfigurationpropertyAffirmComponent.Configuration;DokuComponent.style,DokuComponent.shopperInformationandDokuComponent.localizationParametersmoved into newconfigurationpropertyDokuComponent.Configuration;MBWayComponent.style,MBWayComponent.shopperInformationandMBWayComponent.localizationParametersmoved into newconfigurationpropertyMBWayComponent.Configuration;QiwiWalletComponent.styleandQiwiWalletComponent.localizationParametersmoved into newconfigurationpropertyQiwiWalletComponent.Configuration;BasicPersonalInfoFormComponent.styleandBasicPersonalInfoFormComponent.localizationParametersmoved into newconfigurationpropertyBasicPersonalInfoFormComponent.Configuration;ACHDirectDebitComponent.style,ACHDirectDebitComponent.shopperInformationandACHDirectDebitComponent.localizationParametersmoved into theconfigurationpropertyACHDirectDebitComponent.Configuration;BACSDirectDebitComponent.style,BACSDirectDebitComponent.shopperInformationandBACSDirectDebitComponent.localizationParametersmoved into theconfigurationpropertyBACSDirectDebitComponent.Configuration;BLIKComponent.styleandBLIKComponent.localizationParametersmoved into newconfigurationpropertyBLIKComponent.Configuration;BoletoComponent.style,BoletoComponent.shopperInformationandBoletoComponent.localizationParametersmoved into theconfigurationpropertyBoletoComponent.Configuration;IssuerListComponent.styleandIssuerListComponent.localizationParametersmoved into newconfigurationpropertyIssuerListComponent.Configuration;SEPADirectDebitComponent.styleandSEPADirectDebitComponent.localizationParametersmoved into newconfigurationpropertySEPADirectDebitComponent.Configuration;ThreeDS2Component.appearanceConfigurationandThreeDS2Component.redirectComponentStylemoved toThreeDS2Component.configuration;CardComponent.style,CardComponent.shopperInformationandCardComponent.localizationParametersmoved into theconfigurationpropertyCardComponent.Configuration;DropInComponent.stylemoved into theconfigurationpropertyDropInComponent.Configuration;AwaitComponent.styleandAwaitComponent.localizationParametersmoved toAwaitComponent.configuration;QRCodeComponent.styleandQRCodeComponent.localizationParametersmoved toQRCodeComponent.configuration;VoucherComponent.styleandVoucherComponent.localizationParametersmoved toVoucherComponent.configuration;RedirectComponent.stylemoved toRedirectComponent.configuration;DocumentComponent.styleandDocumentComponent.localizationParametersmoved toDocumentComponent.configuration;DropInComponentDelegatehas been refactored to be more transparent about which action component or payment component caused the call back;- Method
didFinalize(with success: Bool)forFinalizableComponentchanged todidFinalize(with success: Bool, completion: (() -> Void)?); - Helper method
finalizeIfNeeded(with success: Bool)forComponentchanged tofinalizeIfNeeded(with success: Bool, completion: (() -> Void)?); - In
ApplePayComponent.Configurationinit parameterpayment: Paymentchanged topayment: ApplePayPayment; - All properties (except for
paymentandmerchantIdentifier) are removed fromApplePayComponent.Configuration.init()and become mutable; - Refactor
didOpenExternalApplication(_ component:intodidOpenExternalApplication(component:; APIContext.init(environment: AnyAPIEnvironment, clientKey: String)nowthrowsexception 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.brandsis now a strongly typed Array ofCardType.StoredCardPaymentMethod.brandsis now a strongly typed Array ofCardType.StoredCardPaymentMethod.brandis now a strongly typedCardType.PaymentMethodsnow 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
AdyenContextinstance that defines the behavior for a payment flow. AnalyticsConfigurationis 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 parameterfinalBINthat provides the final BIN after shopper submits the card details.