from Purchase
fun fromPurchase(purchase: Purchase, productsById: Map<String, StoreProduct>): List<PlayStorePurchaseAdapter>(source)
Creates adapters for all products in a purchase.
Return
List of adapters, one for each product in the purchase
Parameters
purchase
The Google Play purchase
products By Id
Map of products keyed by raw product ID (productIdentifier)