@@ -94,10 +94,6 @@ private extension BetaFeaturesViewController {
9494 func inPersonPaymentsSection( ) -> Section ? {
9595 var rows : [ Row ] = [ ]
9696
97- if ServiceLocator . featureFlagService. isFeatureFlagEnabled ( . stripeExtensionInPersonPayments) {
98- rows += [ . stripeExtensionInPersonPayments, . stripeExtensionInPersonPaymentsDescription]
99- }
100-
10197 if ServiceLocator . featureFlagService. isFeatureFlagEnabled ( . canadaInPersonPayments) {
10298 rows += [ . canadaInPersonPayments, . canadaInPersonPaymentsDescription]
10399 }
@@ -153,11 +149,6 @@ private extension BetaFeaturesViewController {
153149 configureOrderCreationSwitch ( cell: cell)
154150 case let cell as BasicTableViewCell where row == . orderCreationDescription:
155151 configureOrderCreationDescription ( cell: cell)
156- // WooCommerce Stripe Payment Gateway extension In-Person Payments
157- case let cell as SwitchTableViewCell where row == . stripeExtensionInPersonPayments:
158- configureStripeExtensionInPersonPaymentsSwitch ( cell: cell)
159- case let cell as BasicTableViewCell where row == . stripeExtensionInPersonPaymentsDescription:
160- configureStripeExtensionInPersonPaymentsDescription ( cell: cell)
161152 // In-Person Payments in Canada
162153 case let cell as SwitchTableViewCell where row == . canadaInPersonPayments:
163154 configureCanadaInPersonPaymentsSwitch ( cell: cell)
@@ -243,37 +234,6 @@ private extension BetaFeaturesViewController {
243234 cell. textLabel? . text = Localization . orderCreationDescription
244235 }
245236
246- func configureStripeExtensionInPersonPaymentsSwitch( cell: SwitchTableViewCell ) {
247- configureCommonStylesForSwitchCell ( cell)
248- cell. title = Localization . stripeExtensionInPersonPaymentsTitle
249-
250- // Fetch switch's state stored value.
251- let action = AppSettingsAction . loadStripeInPersonPaymentsSwitchState { result in
252- guard let isEnabled = try ? result. get ( ) else {
253- return cell. isOn = false
254- }
255- cell. isOn = isEnabled
256- }
257- ServiceLocator . stores. dispatch ( action)
258-
259- // Change switch's state stored value
260- cell. onChange = { isSwitchOn in
261- let action = AppSettingsAction . setStripeInPersonPaymentsSwitchState ( isEnabled: isSwitchOn, onCompletion: { result in
262- // Roll back toggle if an error occurred
263- if result. isFailure {
264- cell. isOn. toggle ( )
265- }
266- } )
267- ServiceLocator . stores. dispatch ( action)
268- }
269- cell. accessibilityIdentifier = " beta-features-stripe-extension-in-person-payments-cell "
270- }
271-
272- func configureStripeExtensionInPersonPaymentsDescription( cell: BasicTableViewCell ) {
273- configureCommonStylesForDescriptionCell ( cell)
274- cell. textLabel? . text = Localization . stripeExtensionInPersonPaymentsDescription
275- }
276-
277237 func configureCanadaInPersonPaymentsSwitch( cell: SwitchTableViewCell ) {
278238 configureCommonStylesForSwitchCell ( cell)
279239 cell. title = Localization . canadaExtensionInPersonPaymentsTitle
@@ -434,10 +394,6 @@ private enum Row: CaseIterable {
434394 case orderCreation
435395 case orderCreationDescription
436396
437- // WooCommerce Stripe Payment Gateway extension In-Person Payments
438- case stripeExtensionInPersonPayments
439- case stripeExtensionInPersonPaymentsDescription
440-
441397 // In-Person Payments in Canada
442398 case canadaInPersonPayments
443399 case canadaInPersonPaymentsDescription
@@ -452,9 +408,9 @@ private enum Row: CaseIterable {
452408
453409 var type : UITableViewCell . Type {
454410 switch self {
455- case . orderAddOns, . orderCreation, . stripeExtensionInPersonPayments , . canadaInPersonPayments, . productSKUInputScanner, . couponManagement:
411+ case . orderAddOns, . orderCreation, . canadaInPersonPayments, . productSKUInputScanner, . couponManagement:
456412 return SwitchTableViewCell . self
457- case . orderAddOnsDescription, . orderCreationDescription, . stripeExtensionInPersonPaymentsDescription , . canadaInPersonPaymentsDescription,
413+ case . orderAddOnsDescription, . orderCreationDescription, . canadaInPersonPaymentsDescription,
458414 . productSKUInputScannerDescription, . couponManagementDescription:
459415 return BasicTableViewCell . self
460416 }
@@ -481,15 +437,6 @@ private extension BetaFeaturesViewController {
481437 " Test out creating new manual orders as we get ready to launch " ,
482438 comment: " Cell description on the beta features screen to enable creating new orders " )
483439
484- static let stripeExtensionInPersonPaymentsTitle = NSLocalizedString (
485- " IPP with Stripe extension " ,
486- comment: " Cell title on beta features screen to enable accepting in-person payments for stores with the " +
487- " WooCommerce Stripe Payment Gateway extension " )
488- static let stripeExtensionInPersonPaymentsDescription = NSLocalizedString (
489- " Test out In-Person Payments with the Stripe Payment Gateway extension " ,
490- comment: " Cell description on beta features screen to enable accepting in-person payments for stores with " +
491- " the WooCommerce Stripe Payment Gateway extension " )
492-
493440 static let canadaExtensionInPersonPaymentsTitle = NSLocalizedString (
494441 " In-Person Payments in Canada " ,
495442 comment: " Cell title on beta features screen to enable accepting in-person payments for stores in Canada " )
0 commit comments