Skip to content

Commit

Permalink
Merge pull request #530 from checkout/fix/update-how-frames-options-a…
Browse files Browse the repository at this point in the history
…re-sent-to-risk-sdk

Update how Frames options are sent to Risk SDK
  • Loading branch information
okhan-okbay-cko authored Apr 30, 2024
2 parents 1b5505b + f2d5b45 commit 7e1309c
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/check-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ concurrency:
jobs:
lint:
name: SwiftLint
runs-on: macos-latest
runs-on: macos-13-large

steps:
- name: Checkout
Expand All @@ -33,7 +33,7 @@ jobs:

checkout:
name: Checkout Verification
runs-on: macos-13-xl
runs-on: macos-13-xlarge
needs: lint

steps:
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:

frames:
name: Frames Verification
runs-on: macos-13-xl
runs-on: macos-13-xlarge
needs: lint

steps:
Expand Down
2 changes: 1 addition & 1 deletion Checkout.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ Pod::Spec.new do |s|
s.exclude_files = "Checkout/Samples/**"

s.dependency 'CheckoutEventLoggerKit', '~> 1.2.4'
s.dependency 'Risk', '2.0.3'
s.dependency 'Risk', '3.0.0'

end
7 changes: 4 additions & 3 deletions Checkout/Source/Tokenisation/CheckoutAPIService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,17 @@ final public class CheckoutAPIService: CheckoutAPIProtocol {
riskEnvironment = .sandbox
}

let riskConfig = RiskConfig(publicKey: publicKey, environment: riskEnvironment, framesMode: true, correlationId: logManager.correlationID)
let riskSDK = Risk.init(config: riskConfig)

logManager.setup(
environment: environment,
logger: CheckoutEventLogger(productName: Constants.Product.name),
uiDevice: UIDevice.current,
dateProvider: DateProvider(),
anyCodable: AnyCodable()
)

let framesOptions = FramesOptions(productIdentifier: Constants.Product.name, version: Constants.Product.version, correlationId: logManager.correlationID)
let riskConfig = RiskConfig(publicKey: publicKey, environment: riskEnvironment, framesOptions: framesOptions)
let riskSDK = Risk.init(config: riskConfig)

self.init(
publicKey: publicKey,
Expand Down
4 changes: 2 additions & 2 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/checkout/checkout-risk-sdk-ios.git",
"state" : {
"revision" : "a5df46ecd4324661459faa9e9ac18d627b4d26aa",
"version" : "2.0.3"
"revision" : "d9d8bcbc18ad63e3ce5bf4bb1f34ce5b3508a84b",
"version" : "3.0.0"
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ let package = Package(
exact: "3.5.9"),
.package(
url: "https://github.com/checkout/checkout-risk-sdk-ios.git",
exact: "2.0.3"),
exact: "3.0.0"),
.package(
url: "https://github.com/checkout/checkout-event-logger-ios-framework.git",
from: "1.2.4"
Expand Down

0 comments on commit 7e1309c

Please sign in to comment.