Skip to content

Commit

Permalink
fix(POM-241): fix CKO integration build issue (#150)
Browse files Browse the repository at this point in the history
* Freeze Checkout3DS dependency version and resolve build issues

https://checkout.atlassian.net/browse/POM-241
  • Loading branch information
andrii-vysotskyi-cko authored Aug 9, 2023
1 parent e8798a9 commit b32206d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ProcessOutCheckout3DS.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ Pod::Spec.new do |s|
s.ios.deployment_target = '12.0'
s.source_files = 'Sources/ProcessOutCheckout3DS/**/*.swift'
s.dependency 'ProcessOut', s.version.to_s
s.dependency 'Checkout3DS', '~> 3.0'
s.dependency 'Checkout3DS', '3.1.1'
end
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ final class Checkout3DSService: PO3DSService {
let parameters = convertToChallengeParameters(data: challenge)
context.transaction.doChallenge(challengeParameters: parameters) { [unowned self, errorMapper] result in
self.setIdleStateUnchecked()
let mappedResult = result.map(extractStatus(challengeResult:)).mapError(errorMapper.convert)
let mappedResult = result.map(extractStatus(authenticationResult:)).mapError(errorMapper.convert)
delegate.didHandle3DS2Challenge(result: mappedResult)
completion(mappedResult)
}
Expand Down Expand Up @@ -171,7 +171,7 @@ final class Checkout3DSService: PO3DSService {
return challengeParameters
}

private func extractStatus(challengeResult: ChallengeResult) -> Bool {
challengeResult.transactionStatus.uppercased() == "Y"
private func extractStatus(authenticationResult: AuthenticationResult) -> Bool {
authenticationResult.transactionStatus?.uppercased() == "Y"
}
}

0 comments on commit b32206d

Please sign in to comment.