Skip to content

Commit

Permalink
Merge pull request #455 from ivpn/task/filter-legacy-payments
Browse files Browse the repository at this point in the history
Handle "ERROR: Specified Product ID was not found" for unsuccessful payments
  • Loading branch information
jurajhilje authored Sep 17, 2024
2 parents 68101ea + ceff5c4 commit 496df97
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 496df97

Please sign in to comment.