Skip to content

Commit 41c79a0

Browse files
committed
Remove stripe experiment from CardPresentConfigurationLoader; remove throw from merge
1 parent 3ea2dbf commit 41c79a0

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

WooCommerce/Classes/Tools/In-Person Payments/CardPresentConfigurationLoader.swift

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,9 @@ import Foundation
22
import Yosemite
33

44
final class CardPresentConfigurationLoader {
5-
private var stripeGatewayIPPEnabled: Bool = false
65
private var canadaIPPEnabled: Bool = false
76

87
init(stores: StoresManager = ServiceLocator.stores) {
9-
let stripeAction = AppSettingsAction.loadStripeInPersonPaymentsSwitchState(onCompletion: { [weak self] result in
10-
if case .success(let stripeGatewayIPPEnabled) = result {
11-
self?.stripeGatewayIPPEnabled = stripeGatewayIPPEnabled
12-
}
13-
})
14-
stores.dispatch(stripeAction)
15-
168
let canadaAction = AppSettingsAction.loadCanadaInPersonPaymentsSwitchState(onCompletion: { [weak self] result in
179
if case .success(let canadaIPPEnabled) = result {
1810
self?.canadaIPPEnabled = canadaIPPEnabled
@@ -24,7 +16,6 @@ final class CardPresentConfigurationLoader {
2416
var configuration: CardPresentPaymentsConfiguration {
2517
.init(
2618
country: SiteAddress().countryCode,
27-
stripeEnabled: stripeGatewayIPPEnabled,
2819
canadaEnabled: canadaIPPEnabled
2920
)
3021
}

Yosemite/Yosemite/Model/Payments/CardPresentPaymentsConfiguration.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public struct CardPresentPaymentsConfiguration {
1313
self.supportedReaders = supportedReaders
1414
}
1515

16-
public init(country: String, canadaEnabled: Bool) throws {
16+
public init(country: String, canadaEnabled: Bool) {
1717
switch country {
1818
case "US":
1919
self.init(

0 commit comments

Comments
 (0)