5.3.0
Important
This release is not compatible with Xcode 15
Please consider updating to 5.4.0 or newer
Removed
func didComplete(with resultCode: SessionPaymentResultCode, component: Component, session: AdyenSession)
Use the new didComplete
method with the AdyenSessionResult
object instead.
Changed
-
The
countryCode
property ofAdyenSession.Context
is now optional to allow not including it in the/sessions
request. Because this property isn't meant to be read, this breaking change shouldn't cause any build errors. -
3D Secure 2 SDK version: 2.3.2. Includes enhancements to authentication flows and improved error handling during the in-app 3D Secure 2 challenge.
New
-
The Session delegate has a new
didComplete
method with theAdyenSessionResult
object. This ensures that the callback is compatible with potential backend changes.func didComplete(with result: AdyenSessionResult, component: Component, session: AdyenSession)
This replaces the removed
didComplete
function. -
For Apple Pay,
ApplePayConfiguration
now supports the capabilities ofPKPaymentRequest
. PassPKPaymentRequest
when initializing Apple Pay. For example:public init(paymentRequest: PKPaymentRequest, allowOnboarding: Bool = false)
-
You can now set the formatting for monetary values. Use the
locale
property onLocalizationParameters
. -
You can now enforce a specific locale and formatting for monetary values regardless of the locale used by the shopper's device. Use
LocalizationParameters(enforcedLocale: MY_LOCALE)
. -
You can now configure the payment form to suggest billing addresses when the shopper starts to enter their address. Set the
configuration.card.billingAddress.mode
to.lookup(handler: LookupHandler)
. -
For the gift cards using Drop-in, you can now configure the visibility of the security code field. Set
showsSecurityCodeField
(boolean) in thegiftcard
payment method configuration.
Improved
- When the shopper selects a country and region in the payment form, the selection is now fullscreen and includes a search input field where the shopper can enter a value to search for.
- For cards:
- The address input form now shows on a separate screen.
- Icons now have accessibility labels. When the shopper selects the Pay button, and an input field is invalid, focus moves to the field.
- Remove property
applePayCardNetwork
fromApplePayDetails
that was causing conflicts on some API libraries.