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
·
1 revision
Query a single purchased or subscribed product of the user using below code:
/// To get the purchased productPurchaseInfo? purchaseInfo =awaitFlutterPoolakey.queryPurchasedProduct('product id')
/// To get the subscribed productPurchaseInfo? purchaseInfo =awaitFlutterPoolakey.querySubscribedProduct('product id')
They return null if don't find any product. Otherwise, it returns a PurchaseInfo.
It throws a [PlatformException] with a stacktrace if any error happenss. You must handle the error with your logic.