-
Notifications
You must be signed in to change notification settings - Fork 17
7. Get SKU details of your products
Iman khoshabi edited this page May 27, 2021
·
1 revision
Use the below functions to get purchase or subscribe SKU details:
/// To get SKU details of your purchasable products
List<SkuDetails> skuDetailsList = await FlutterPoolakey.getInAppSkuDetails(['skuId1', 'skuId2']);
/// To get SKU details of your subscibable products
List<SkuDetails> skuDetailsList = await FlutterPoolakey.getSubscriptionSkuDetails(['skuId1', 'skuId2']);
You should provide skuIds
list which contain all SKU id's that you want to get info about it.
Return an empty list if they don't find anything. Otherwise, they return the list of found SkuDetails
It throws a PlatformException
with a stacktrace if any error happenss. You must handle the error with your logic.