From ceff5c4f7faadaa1aedddacafc8384cdce2bcba4 Mon Sep 17 00:00:00 2001 From: Juraj Hilje Date: Tue, 3 Sep 2024 12:49:37 +0200 Subject: [PATCH] feat(payments): filter legacy products in PurchaseManager.swift --- IVPNClient/Managers/PurchaseManager.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/IVPNClient/Managers/PurchaseManager.swift b/IVPNClient/Managers/PurchaseManager.swift index f0fe61c43..f633cefd3 100644 --- a/IVPNClient/Managers/PurchaseManager.swift +++ b/IVPNClient/Managers/PurchaseManager.swift @@ -117,6 +117,10 @@ class PurchaseManager: NSObject { continue } + guard ProductId.all.contains(transaction.productID) else { + continue + } + if transaction.revocationDate == nil { log(.info, message: "[Store] Completing unfinished purchase \(transaction.productID)") complete(transaction)