diff --git a/AdyenDropIn/DropInComponent.swift b/AdyenDropIn/DropInComponent.swift index 207e8b2996..6b4c180788 100644 --- a/AdyenDropIn/DropInComponent.swift +++ b/AdyenDropIn/DropInComponent.swift @@ -201,6 +201,7 @@ public final class DropInComponent: NSObject, handler.presentationDelegate = self handler.configuration.localizationParameters = configuration.localizationParameters handler.configuration.threeDS = configuration.actionComponent.threeDS + handler.configuration.twint = configuration.actionComponent.twint return handler }() diff --git a/AdyenDropIn/Models/DropInConfiguration.swift b/AdyenDropIn/Models/DropInConfiguration.swift index 057aa63c6a..4deb4f39af 100644 --- a/AdyenDropIn/Models/DropInConfiguration.swift +++ b/AdyenDropIn/Models/DropInConfiguration.swift @@ -1,5 +1,5 @@ // -// Copyright (c) 2023 Adyen N.V. +// Copyright (c) 2024 Adyen N.V. // // This file is open source and available under the MIT license. See the LICENSE file for more info. // @@ -85,6 +85,9 @@ public extension DropInComponent { /// Three DS configurations public var threeDS: AdyenActionComponent.Configuration.ThreeDS = .init() + + /// Twint configurations + public var twint: AdyenActionComponent.Configuration.Twint? = nil } /// Boleto component configuration. diff --git a/Demo/Configuration.swift b/Demo/Configuration.swift index d5f6a997e8..b28143db7e 100644 --- a/Demo/Configuration.swift +++ b/Demo/Configuration.swift @@ -250,6 +250,7 @@ internal struct DemoAppSettings: Codable { if dropInSettings.cashAppPayEnabled { dropInConfig.cashAppPay = .init(redirectURL: URL(string: ConfigurationConstants.returnUrl)!) } + dropInConfig.actionComponent.twint = .init(returnUrl: ConfigurationConstants.returnUrl) return dropInConfig }