Skip to content

Commit 254a9f0

Browse files
Merge pull request #539 from checkout/release/4.3.6
Release/4.3.6
2 parents 40cd342 + b7bada8 commit 254a9f0

File tree

8 files changed

+46
-40
lines changed

8 files changed

+46
-40
lines changed

Checkout.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'Checkout'
3-
s.version = '4.3.5'
3+
s.version = '4.3.6'
44
s.summary = 'Checkout SDK for iOS'
55

66
s.description = <<-DESC

Checkout/Samples/CocoapodsSample/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ target 'CheckoutCocoapodsSample' do
55
use_frameworks!
66

77
# Pods for CheckoutSDKCocoapodsSample
8-
pod 'Checkout', '4.3.5'
8+
pod 'Checkout', '4.3.6'
99

1010
end

Checkout/Samples/SPMSample/CheckoutSPMSample.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@
512512
repositoryURL = "https://github.com/checkout/frames-ios";
513513
requirement = {
514514
kind = exactVersion;
515-
version = 4.3.5;
515+
version = 4.3.6;
516516
};
517517
};
518518
/* End XCRemoteSwiftPackageReference section */

Checkout/Source/Tokenisation/CheckoutAPIService.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,16 @@ final public class CheckoutAPIService: CheckoutAPIProtocol {
159159
case .response(let tokenResponse):
160160
let tokenDetails = tokenDetailsFactory.create(tokenResponse: tokenResponse)
161161

162-
guard let self else { return }
162+
guard let self else {
163+
logManager.resetCorrelationID()
164+
return
165+
}
166+
163167
self.riskSDK.configure { configurationResult in
164168
switch configurationResult {
165169
case .failure:
166170
completion(.success(tokenDetails))
171+
logManager.resetCorrelationID()
167172
case .success():
168173
self.riskSDK.publishData(cardToken: tokenDetails.token) { _ in
169174
logManager.queue(event: .riskSDKCompletion)

CheckoutTests/Integration/CheckoutAPIServiceIntegrationTests.swift

Lines changed: 33 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -61,38 +61,39 @@ final class CheckoutAPIServiceIntegrationTests: XCTestCase {
6161
}
6262
}
6363

64-
func test_createApplePayToken() {
65-
let applePay = StubProvider.createApplePay()
66-
67-
// details associated with default apple pay token
68-
let expectedApplePayDetails = ApplePayDetails(
69-
expiryDate: .init(month: 3, year: 2024),
70-
bin: "537426",
71-
last4: "7789"
72-
)
73-
74-
let expectation = XCTestExpectation(description: "Waiting for token creation")
75-
var tokenDetailsResult: Result<TokenDetails, TokenisationError.TokenRequest>?
76-
77-
subject.createToken(.applePay(applePay)) {
78-
tokenDetailsResult = $0
79-
expectation.fulfill()
80-
}
81-
82-
wait(for: [expectation], timeout: 35)
83-
84-
guard let tokenDetailsResult = tokenDetailsResult else {
85-
XCTFail("expected tokenDetailsResult")
86-
return
87-
}
88-
89-
switch tokenDetailsResult {
90-
case .success(let tokenDetails):
91-
verifyApplePayToken(applePayDetails: expectedApplePayDetails, tokenDetails: tokenDetails)
92-
case .failure(let tokenisationError):
93-
XCTFail("expected success, received error, code: \(tokenisationError.code)")
94-
}
95-
}
64+
#warning("Commented out until we get a new dummy Apple Pay token for stubbing purposes")
65+
// func test_createApplePayToken() {
66+
// let applePay = StubProvider.createApplePay()
67+
//
68+
// // details associated with default apple pay token
69+
// let expectedApplePayDetails = ApplePayDetails(
70+
// expiryDate: .init(month: 3, year: 2024),
71+
// bin: "537426",
72+
// last4: "7789"
73+
// )
74+
//
75+
// let expectation = XCTestExpectation(description: "Waiting for token creation")
76+
// var tokenDetailsResult: Result<TokenDetails, TokenisationError.TokenRequest>?
77+
//
78+
// subject.createToken(.applePay(applePay)) {
79+
// tokenDetailsResult = $0
80+
// expectation.fulfill()
81+
// }
82+
//
83+
// wait(for: [expectation], timeout: 35)
84+
//
85+
// guard let tokenDetailsResult = tokenDetailsResult else {
86+
// XCTFail("expected tokenDetailsResult")
87+
// return
88+
// }
89+
//
90+
// switch tokenDetailsResult {
91+
// case .success(let tokenDetails):
92+
// verifyApplePayToken(applePayDetails: expectedApplePayDetails, tokenDetails: tokenDetails)
93+
// case .failure(let tokenisationError):
94+
// XCTFail("expected success, received error, code: \(tokenisationError.code)")
95+
// }
96+
// }
9697

9798
private func verifyCardToken(
9899
card: Card,

Frames.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "Frames"
3-
s.version = "4.3.5"
3+
s.version = "4.3.6"
44
s.summary = "Checkout API Client, Payment Form UI and Utilities in Swift"
55
s.description = <<-DESC
66
Checkout API Client and Payment Form Utilities in Swift.
@@ -21,6 +21,6 @@ Pod::Spec.new do |s|
2121

2222
s.dependency 'PhoneNumberKit'
2323
s.dependency 'CheckoutEventLoggerKit', '~> 1.2.4'
24-
s.dependency 'Checkout', '4.3.5'
24+
s.dependency 'Checkout', '4.3.6'
2525

2626
end

iOS Example Frame SPM/iOS Example Frame SPM.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1239,7 +1239,7 @@
12391239
repositoryURL = "https://github.com/checkout/frames-ios";
12401240
requirement = {
12411241
kind = exactVersion;
1242-
version = 4.3.5;
1242+
version = 4.3.6;
12431243
};
12441244
};
12451245
16C3F83E2A7927ED00690639 /* XCRemoteSwiftPackageReference "swift-snapshot-testing" */ = {

iOS Example Frame/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ target 'iOS Example Frame' do
66
use_frameworks!
77

88
# Pods for iOS Example Custom
9-
pod 'Frames', '4.3.5'
9+
pod 'Frames', '4.3.6'
1010

1111
end
1212

0 commit comments

Comments
 (0)