Skip to content

Commit

Permalink
feat(payments): filter legacy products in PurchaseManager.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
jurajhilje committed Sep 3, 2024
1 parent e06ae71 commit ceff5c4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions IVPNClient/Managers/PurchaseManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ceff5c4

Please sign in to comment.