File tree Expand file tree Collapse file tree 2 files changed +1
-10
lines changed
WooCommerce/Classes/Tools/In-Person Payments
Yosemite/Yosemite/Model/Payments Expand file tree Collapse file tree 2 files changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -2,17 +2,9 @@ import Foundation
22import Yosemite
33
44final 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 }
Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments