getProductsWith
fun Purchases.getProductsWith( productIds: List<String>, onError: (error: PurchasesError) -> Unit = ON_ERROR_STUB, onGetStoreProducts: (storeProducts: List<StoreProduct>) -> Unit)
Gets the StoreProduct(s) for the given list of product ids for all product types.
Parameters
productIds
List of productIds
onError
Will be called if there was an error with the purchase
onGetStoreProducts
Will be called after fetching StoreProducts
fun Purchases.getProductsWith( productIds: List<String>, type: ProductType?, onError: (error: PurchasesError) -> Unit = ON_ERROR_STUB, onGetStoreProducts: (storeProducts: List<StoreProduct>) -> Unit)
Gets the StoreProduct(s) for the given list of product ids of type type
Parameters
productIds
List of productIds
type
A product type to filter by
onError
Will be called if there was an error with the purchase
onGetStoreProducts
Will be called after fetching StoreProducts