@@ -200,7 +200,6 @@ private extension POSTabCoordinator {
200200 let serviceAdaptor = POSServiceLocatorAdaptor ( )
201201 let collectPaymentAnalyticsAdaptor = POSCollectOrderPaymentAnalyticsAdaptor ( analytics: serviceAdaptor. analytics)
202202
203- // Use mock card payment service for screenshot tests
204203 let cardPresentPaymentService : CardPresentPaymentFacade
205204 if ProcessConfiguration . shouldBypassCardPresentPayment {
206205 cardPresentPaymentService = CardPresentPaymentServiceScreenshotMock ( )
@@ -232,16 +231,16 @@ private extension POSTabCoordinator {
232231 selectedSite: defaultSitePublisher,
233232 appPasswordSupportState: isAppPasswordSupported) {
234233
235- // Use mock order service for screenshot tests to bypass network calls
236234 let orderService : POSOrderServiceProtocol
237235 if ProcessConfiguration . shouldBypassPOSOrderSyncing {
238236 orderService = POSOrderServiceScreenshotMock ( currency: currencySettings. currencyCode. rawValue)
239- } else if let realService = POSOrderService ( siteID: siteID,
237+ } else if let posOrderService = POSOrderService ( siteID: siteID,
240238 credentials: credentials,
241239 selectedSite: defaultSitePublisher,
242240 appPasswordSupportState: isAppPasswordSupported) {
243- orderService = realService
241+ orderService = posOrderService
244242 } else {
243+ DDLogError ( " POSOrderService not provided " )
245244 return
246245 }
247246
0 commit comments