LinkFive - Successful Subscriptions

Make a Purchase

Make a Purchase

Please read How to initialize the plugin before you start with this part.

If the user wants to purchase a subscription, you want to close the deal and purchase the product.

The Purchase Method

If you followed the previous section “Show your Subscription Offer“

Then you're familiar with the LinkFiveSubscriptionData and how to get them. You also read about the linkFiveSkuData List which contains all subscriptions you should offer to the user.

To purchase a product, you just need to pass the object to the purchase method. The Purchase process handles everything else.

LinkFivePurchases
.purchase(linkFiveProductDetails.productDetails);

If the purchase was successful, the verified receipt is sent to the active subscription stream.