load Purchased Products
suspend fun loadPurchasedProducts(serverEntitlementsByProductId: Map<String, Set<Entitlement>>)(source)
Loads purchased products from device receipts and builds enriched entitlements.
This method:
Queries all purchases from Google Play
Builds enriched entitlements using server entitlement definitions
Creates device CustomerInfo from the receipts
Stores the device CustomerInfo and triggers merge with web info
Parameters
server Entitlements By Product Id
Map of product ID to entitlements from config