-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #518 from checkout/release/4.3.2
Integrate Risk SDK
- Loading branch information
Showing
16 changed files
with
167 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Pod::Spec.new do |s| | ||
s.name = 'Checkout' | ||
s.version = '4.3.0' | ||
s.version = '4.3.2' | ||
s.summary = 'Checkout SDK for iOS' | ||
|
||
s.description = <<-DESC | ||
|
@@ -13,12 +13,13 @@ Pod::Spec.new do |s| | |
s.author = { "Checkout.com Integration" => "[email protected]" } | ||
s.source = { :git => "https://github.com/checkout/frames-ios.git", :tag => s.version } | ||
|
||
s.ios.deployment_target = '11.0' | ||
s.ios.deployment_target = '12.0' | ||
s.swift_version = "5.7" | ||
|
||
s.source_files = 'Checkout/Source/**/*.swift' | ||
s.exclude_files = "Checkout/Samples/**" | ||
|
||
s.dependency 'CheckoutEventLoggerKit', '~> 1.2.4' | ||
s.dependency 'Risk', '2.0.1' | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// | ||
// StubRisk.swift | ||
// | ||
// | ||
// Created by Precious Ossai on 20/02/2024. | ||
// | ||
|
||
import Foundation | ||
@testable import Risk | ||
@testable import Checkout | ||
|
||
// swiftlint:disable large_tuple | ||
class StubRisk: RiskProtocol { | ||
|
||
var configureCalledCount = 0 | ||
var publishDataCalledCount = 0 | ||
|
||
func configure(completion: @escaping (Result<Void, RiskError.Configuration>) -> Void) { | ||
configureCalledCount += 1 | ||
completion(.success(())) | ||
} | ||
|
||
func publishData (cardToken: String? = nil, completion: @escaping (Result<PublishRiskData, RiskError.Publish>) -> Void) { | ||
publishDataCalledCount += 1 | ||
completion(.success(PublishRiskData(deviceSessionId: "dsid_testDeviceSessionId"))) | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.