Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed DropIn Configuration for Twint #1535

Merged
merged 1 commit into from
Mar 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AdyenDropIn/DropInComponent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}()

Expand Down
5 changes: 4 additions & 1 deletion AdyenDropIn/Models/DropInConfiguration.swift
Original file line number Diff line number Diff line change
@@ -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.
//
Expand Down Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions Demo/Configuration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
Loading