Skip to content

Commit

Permalink
Merge branch 'develop' into feature/add_privacy_manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
goergisn authored Mar 18, 2024
2 parents 5613b6d + 598f333 commit f445595
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Adyen.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Pod::Spec.new do |s|

s.subspec 'Actions' do |plugin|
plugin.dependency 'Adyen/Core'
plugin.dependency 'Adyen3DS2', '2.3.3'
plugin.dependency 'Adyen3DS2', '2.4.1'
plugin.source_files = 'AdyenActions/**/*.swift'
plugin.exclude_files = 'AdyenActions/**/BundleSPMExtension.swift'
plugin.resource_bundles = {
Expand Down
2 changes: 1 addition & 1 deletion Adyen.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -8950,7 +8950,7 @@
repositoryURL = "https://github.com/Adyen/adyen-3ds2-ios";
requirement = {
kind = exactVersion;
version = 2.3.3;
version = 2.4.1;
};
};
F94D65E42B0365C30095D61E /* XCRemoteSwiftPackageReference "adyen-authentication-ios" */ = {
Expand Down
12 changes: 12 additions & 0 deletions Adyen/Utilities/PublicKeyProvider/PublicKeyProvider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,19 @@ public final class PublicKeyProvider: AnyPublicKeyProvider {
cachedPublicKey = response.cardPublicKey
completion(.success(response.cardPublicKey))
case let .failure(error):
if error is DecodingError {
// Disclaimer: This error check is not 100% reliable. Need to improve the endpoint.
return completion(.failure(Error.invalidClientKey))
}
completion(.failure(error))
}
}

public enum Error: Swift.Error, LocalizedError {
case invalidClientKey

public var errorDescription: String? {
return "Client key not found on the selected environment."
}
}
}
2 changes: 1 addition & 1 deletion AdyenCard/Components/Card/ThreeDS2SdkVersion.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
import Foundation

/// The 3DS2 SDK version.
public let threeDS2SdkVersion: String = "2.3.3"
public let threeDS2SdkVersion: String = "2.4.1"
2 changes: 1 addition & 1 deletion Cartfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
github "adyen/adyen-3ds2-ios" == 2.3.3
github "adyen/adyen-3ds2-ios" == 2.4.1
github "adyen/adyen-networking-ios" == 2.0.0
github "adyen/adyen-wechatpay-ios" == 2.1.0
github "adyen/adyen-authentication-ios" == 2.0.0
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ let package = Package(
.package(
name: "Adyen3DS2",
url: "https://github.com/Adyen/adyen-3ds2-ios",
.exact(Version(2, 3, 3))
.exact(Version(2, 4, 1))
),
.package(
name: "AdyenAuthentication",
Expand Down

0 comments on commit f445595

Please sign in to comment.