diff options
| author | Christian Cleberg <[email protected]> | 2026-07-20 14:03:36 -0500 |
|---|---|---|
| committer | Christian Cleberg <[email protected]> | 2026-07-20 15:07:40 -0500 |
| commit | 024f611fbbf4d2405a10d649a59968617321732a (patch) | |
| tree | 0128a9790796262ff5cbf48be9dec22eef9d414d | |
| parent | d69aa35d8843e45e1d13bae82259043787a661b0 (diff) | |
| download | domain-dig-024f611fbbf4d2405a10d649a59968617321732a.tar.gz domain-dig-024f611fbbf4d2405a10d649a59968617321732a.tar.bz2 domain-dig-024f611fbbf4d2405a10d649a59968617321732a.zip | |
fix: match IAP product IDs to App Store Connect
The four product ID constants did not match the auto-renewable
subscriptions configured in App Store Connect, so Product.products(for:)
returned an empty array and tier(for:) resolved every purchase to .free.
Product IDs are permanent in App Store Connect, so the code is corrected
to match the configured values rather than the reverse:
domaindig.pro.monthly -> domaindig.pro.month
domaindig.pro.yearly -> domaindig.pro.annually
domaindig.dataplus.monthly -> domaindig.proplus.monthly
domaindig.dataplus.yearly -> domaindig.proplus.annually
| -rw-r--r-- | DomainDig/PurchaseService.swift | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/DomainDig/PurchaseService.swift b/DomainDig/PurchaseService.swift index dbc31ba..d31afc7 100644 --- a/DomainDig/PurchaseService.swift +++ b/DomainDig/PurchaseService.swift @@ -15,10 +15,10 @@ final class PurchaseService { } static let shared = PurchaseService() - static let monthlyProductID = "domaindig.pro.monthly" - static let yearlyProductID = "domaindig.pro.yearly" - static let proPlusMonthlyProductID = "domaindig.dataplus.monthly" - static let proPlusYearlyProductID = "domaindig.dataplus.yearly" + static let monthlyProductID = "domaindig.pro.month" + static let yearlyProductID = "domaindig.pro.annually" + static let proPlusMonthlyProductID = "domaindig.proplus.monthly" + static let proPlusYearlyProductID = "domaindig.proplus.annually" static let productIDs = [ monthlyProductID, yearlyProductID, |
