LinkFive - Successful Subscriptions

Make a Purchase

Make a Purchase

Please read Fetch subscriptions before you start with this part.

Purchase a subscription

Now that you got all your subscriptions from the previous step you can easily purchase them:

LinkFivePurchases.shared.purchase(product: product) { result in
switch result {
case .success(let succeeded):
// TODO: Handle the success case
case .failure(let error):
// TODO: Handle the error
}
}

Next: Restore a subscription