public void RetrieveProducts(ReadOnlyCollection <ProductDefinition> products) { if (m_StoreCallback != null) { m_GooglePlayStoreService.RetrieveProducts(products, retrievedProducts => { m_GoogleFetchPurchases.FetchPurchases(purchaseProducts => { var mergedProducts = MakePurchasesIntoProducts(retrievedProducts, purchaseProducts); m_StoreCallback.OnProductsRetrieved(mergedProducts); }); }, () => { m_StoreCallback.OnSetupFailed(InitializationFailureReason.NoProductsAvailable); }); } }
public void RetrieveProducts(ReadOnlyCollection <ProductDefinition> products) { if (m_StoreCallback != null) { m_GooglePlayStoreService.RetrieveProducts(products, retrievedProducts => { m_GoogleFetchPurchases.FetchPurchases(purchaseProducts => { var mergedProducts = MakePurchasesIntoProducts(retrievedProducts, purchaseProducts); m_StoreCallback.OnProductsRetrieved(mergedProducts); }); }, () => { m_GooglePlayConfigurationInternal.NotifyInitializationConnectionFailed(); }); } }