Skip to content

Commit 15ce805

Browse files
committed
Remove acceptCashForPointOfSale feature flag
1 parent 1de6c89 commit 15ce805

File tree

4 files changed

+1
-16
lines changed

4 files changed

+1
-16
lines changed

Experiments/Experiments/DefaultFeatureFlagService.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,6 @@ public struct DefaultFeatureFlagService: FeatureFlagService {
8989
return true
9090
case .sendReceiptsForPointOfSale:
9191
return true
92-
case .acceptCashForPointOfSale:
93-
return true
9492
case .hideSitesInStorePicker:
9593
return true
9694
case .filterHistoryOnOrderAndProductLists:

Experiments/Experiments/FeatureFlag.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,6 @@ public enum FeatureFlag: Int {
193193
///
194194
case sendReceiptsForPointOfSale
195195

196-
/// Adds support for accepting cash as payment for POS
197-
///
198-
case acceptCashForPointOfSale
199-
200196
/// Supports hiding sites from the store picker
201197
///
202198
case hideSitesInStorePicker

WooCommerce/Classes/POS/Presentation/Card Present Payments/Reader Messages/PointOfSaleCardPresentPaymentDisconnectedMessageViewModel.swift

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
import Foundation
22

33
struct PointOfSaleCardPresentPaymentReaderDisconnectedMessageViewModel {
4-
let isPOSCashEnabled = ServiceLocator.featureFlagService.isFeatureFlagEnabled(.acceptCashForPointOfSale)
5-
64
let title = Localization.title
75
let connectReaderButtonTitle = Localization.collectPayment
86
var instruction: String {
9-
isPOSCashEnabled ? Localization.instruction : Localization.cardOnlyInstruction
7+
Localization.instruction
108
}
119
}
1210

@@ -18,12 +16,6 @@ private extension PointOfSaleCardPresentPaymentReaderDisconnectedMessageViewMode
1816
comment: "Error message. Presented to users when card reader is not connected on the Point of Sale Checkout"
1917
)
2018

21-
static let cardOnlyInstruction = NSLocalizedString(
22-
"pointOfSale.cardPresent.readerNotConnected.instruction",
23-
value: "To process this payment, please connect your reader.",
24-
comment: "Instruction to merchants shown on the Point of Sale Checkout, so they can take a card payment."
25-
)
26-
2719
static let instruction = NSLocalizedString(
2820
"pointOfSale.cardPresent.readerNotConnectedOrCash.instruction",
2921
value: "To process this payment, please connect your reader or choose cash.",

WooCommerce/Classes/POS/ViewHelpers/TotalsViewHelper.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ final class TotalsViewHelper {
4242

4343
func shouldShowCollectCashPaymentButton(orderState: PointOfSaleOrderState,
4444
paymentState: PointOfSalePaymentState) -> Bool {
45-
ServiceLocator.featureFlagService.isFeatureFlagEnabled(.acceptCashForPointOfSale) &&
4645
orderState != .syncing &&
4746
(paymentState == .card(.idle) || paymentState == .card(.acceptingCard) || paymentState == .card(.validatingOrderError))
4847
}

0 commit comments

Comments
 (0)