diff --git a/Checkout/Source/Logging/CheckoutLogEvent.swift b/Checkout/Source/Logging/CheckoutLogEvent.swift index e52befe30..ccb2313aa 100644 --- a/Checkout/Source/Logging/CheckoutLogEvent.swift +++ b/Checkout/Source/Logging/CheckoutLogEvent.swift @@ -107,14 +107,14 @@ enum CheckoutLogEvent: Equatable { ) case .cvvRequested(let tokenRequestData): return [ - .tokenType: tokenRequestData.tokenType, + .tokenType: tokenRequestData.tokenType?.rawValue.lowercased(), .publicKey: tokenRequestData.publicKey ].compactMapValues { $0 } case let .cvvResponse(tokenRequestData, tokenResponseData): return mergeDictionaries( [ - .tokenType: tokenRequestData.tokenType, + .tokenType: tokenRequestData.tokenType?.rawValue.lowercased(), .publicKey: tokenRequestData.publicKey, .tokenID: tokenResponseData.tokenID, .scheme: tokenResponseData.scheme diff --git a/Checkout/Source/Network/Models/SecurityCode/SecurityCodeRequest.swift b/Checkout/Source/Network/Models/SecurityCode/SecurityCodeRequest.swift index bc9a1dbf9..a52bece7e 100644 --- a/Checkout/Source/Network/Models/SecurityCode/SecurityCodeRequest.swift +++ b/Checkout/Source/Network/Models/SecurityCode/SecurityCodeRequest.swift @@ -21,6 +21,6 @@ struct TokenData: Encodable, Equatable { } // For logging purposes only -enum SecurityCodeTokenType: String { +enum SecurityCodeTokenType: String, Codable, Equatable { case cvv } diff --git a/iOS Example Frame SPM/iOS Example Frame SPM.xcodeproj/project.pbxproj b/iOS Example Frame SPM/iOS Example Frame SPM.xcodeproj/project.pbxproj index 414f6ebc6..0d342368e 100644 --- a/iOS Example Frame SPM/iOS Example Frame SPM.xcodeproj/project.pbxproj +++ b/iOS Example Frame SPM/iOS Example Frame SPM.xcodeproj/project.pbxproj @@ -1235,7 +1235,7 @@ isa = XCRemoteSwiftPackageReference; repositoryURL = "https://github.com/checkout/frames-ios"; requirement = { - branch = "feature/cvv-component-tokenisation"; + branch = "feature/cvv-component-logging"; kind = branch; }; };