| 12345678910111213141516171819202122232425262728 |
- //
- // SubscriptionProductIDs.swift
- // App for Indeed
- //
- import Foundation
- /// Identifiers for auto-renewable subscriptions in App Store Connect.
- /// IDs may only contain letters, numbers, underscores, and periods (no hyphens).
- /// Keep these strings identical in code, `Paywall.storekit`, and App Store Connect.
- /// Local Xcode runs use `App for Indeed/Paywall.storekit` (Run scheme → Options → StoreKit Configuration).
- enum SubscriptionProductIDs {
- static let weekly = "com.mqldev.appforindeed.pro.weekly"
- static let monthly = "com.mqldev.appforindeed.pro.monthly"
- static let yearly = "com.mqldev.appforindeed.pro.yearly"
- static let all: [String] = [weekly, monthly, yearly]
- static func productID(planKey: String) -> String? {
- switch planKey {
- case "weekly": return weekly
- case "monthly": return monthly
- case "yearly": return yearly
- default: return nil
- }
- }
- }
|