LinkFive - Successful Subscriptions
Fetch receipt
Fetch receipt
Fetch receipt
To check whether a customer already purchased a subscription, fetch the receipt.
You can also pass a fromCache flag to determine whether to fetch the receipt from the cache or from the server.
The receipt has the property isExpired to easily check whether the subscription is active or not.
LinkFivePurchases.shared.fetchReceiptInfo(fromCache: false) { result in switch result { case .success(let succeeded): // TODO: Handle the success case case .failure(let error): // TODO: Handle the error }}That's it! You are basically all set up!