Skip to content

Commit

Permalink
Fix logging issue
Browse files Browse the repository at this point in the history
  • Loading branch information
okhan-okbay-cko committed Nov 1, 2023
1 parent d3eba3a commit e5ac3e0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Checkout/Source/Logging/CheckoutLogEvent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ struct TokenData: Encodable, Equatable {
}

// For logging purposes only
enum SecurityCodeTokenType: String {
enum SecurityCodeTokenType: String, Codable, Equatable {
case cvv
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
};
Expand Down

0 comments on commit e5ac3e0

Please sign in to comment.