You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Iman khoshabi edited this page May 27, 2021
·
2 revisions
Get all purchased products of the user (products in user's inventory) using below code:
/// To get the purchased productsList<PurchaseInfo> purchasedProductsList =awaitFlutterPoolakey.getAllPurchasedProducts()
/// To get the subscribed productsList<PurchaseInfo> purchasedProductsList =awaitFlutterPoolakey.getAllSubscribedProducts()
It returns an empty list if doesn't find any product otherwise it returns a list of PurchaseInfo.
It throws a PlatformException with a stacktrace if any error happenss. You must handle the error with your logic.