diff --git a/Sources/Purchasing/Purchases/PurchasesOrchestrator.swift b/Sources/Purchasing/Purchases/PurchasesOrchestrator.swift index 60231f0a88..a83ee9a307 100644 --- a/Sources/Purchasing/Purchases/PurchasesOrchestrator.swift +++ b/Sources/Purchasing/Purchases/PurchasesOrchestrator.swift @@ -1371,7 +1371,7 @@ private extension PurchasesOrchestrator { ) { self.productsManager.products(withIdentifiers: [productIdentifier]) { products in let result = products.value?.first.map { - ProductRequestData(with: $0, storefront: self.paymentQueueWrapper.currentStorefront) + ProductRequestData(with: $0, storefront: self.systemInfo.storefront) } completion(result) diff --git a/Sources/Purchasing/StoreKit1/PaymentQueueWrapper.swift b/Sources/Purchasing/StoreKit1/PaymentQueueWrapper.swift index 8d443c5191..67bf7a168c 100644 --- a/Sources/Purchasing/StoreKit1/PaymentQueueWrapper.swift +++ b/Sources/Purchasing/StoreKit1/PaymentQueueWrapper.swift @@ -45,8 +45,6 @@ protocol PaymentQueueWrapperType: AnyObject { @available(macCatalyst, unavailable) func presentCodeRedemptionSheet() - var currentStorefront: Storefront? { get } - } /// The choice between SK1's `StoreKit1Wrapper` or `PaymentQueueWrapper` when SK2 is enabled. @@ -101,12 +99,6 @@ class PaymentQueueWrapper: NSObject, PaymentQueueWrapperType { } #endif - var currentStorefront: Storefront? { - return self.paymentQueue.storefront - .map(SK1Storefront.init) - .map(Storefront.from(storefront:)) - } - } extension PaymentQueueWrapper: SKPaymentQueueDelegate { @@ -154,8 +146,6 @@ extension EitherPaymentQueueWrapper { } } - var currentStorefront: StorefrontType? { self.paymentQueueWrapperType.currentStorefront } - var sk1Wrapper: StoreKit1Wrapper? { return self.left } var sk2Wrapper: PaymentQueueWrapper? { return self.right }