public void LoadSkuDetails(AN_BillingClient client, AN_BillingClient.SkuType skuType, Action <List <AN_SkuDetails> > callback)
        {
            m_Callback = callback;
            var paramsBuilder = AN_SkuDetailsParams.NewBuilder();

            paramsBuilder.SetType(skuType);

            var skusList = new List <string>();

            foreach (var product in AN_Settings.Instance.InAppProducts)
            {
                if (product.Type == skuType)
                {
                    skusList.Add(product.Sku);
                }
            }

            paramsBuilder.SetSkusList(skusList);
            client.QuerySkuDetailsAsync(paramsBuilder.Build(), this);
        }
Example #2
0
 public void QuerySkuDetailsAsync(AN_SkuDetailsParams @params, Action <List <AN_SkuDetails> > callback)
 {
     m_OnSkuDetailsCallback = callback;
     m_BillingClient.QuerySkuDetailsAsync(@params, this);
 }