fromPurchase

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

productsById

Map of products keyed by raw product ID (productIdentifier)