public void OnGetSkuDetailsFinished(IapResult result, IList <SkuDetails> skuDetailsList) { _sample.ResultText.text = JsonConvert.SerializeObject (result, Formatting.Indented, JsonnetSetting()) + "\n" + JsonConvert.SerializeObject (skuDetailsList, Formatting.Indented, JsonnetSetting()); }
public void OnGetPurchasesFinished(IapResult result, IList <string> ownedSkus, string continuationToken) { _sample.ResultText.text = JsonConvert.SerializeObject (result, Formatting.Indented, JsonnetSetting()) + "\n" + JsonConvert.SerializeObject (ownedSkus, Formatting.Indented, JsonnetSetting()) + "\n" + "continuationToken: " + continuationToken; }
public void OnSubscriptionFinished(IapResult result, Purchase purchase, string webhookMessage) { _sample.ResultText.text = JsonConvert.SerializeObject (result, Formatting.Indented, JsonnetSetting()) + "\n" + JsonConvert.SerializeObject (purchase, Formatting.Indented, JsonnetSetting()) + "\n" + "webhookMessage: " + webhookMessage; }
public void OnConsumptionFinished(IapResult result, string sku, string purchaseToken, string webhookMessage) { _sample.ResultText.text = JsonConvert.SerializeObject (result, Formatting.Indented, JsonnetSetting()) + "\n" + "sku: " + sku + "\n" + "purchaseToken: " + purchaseToken + "\n" + "webhookMessage: " + webhookMessage; if (result.ResultCode == IapResult.SUCCESS) { _sample.PurchaseToken = null; } }
public void OnPurchaseFinished(IapResult result, Purchase purchase, string webhookMessage) { _sample.ResultText.text = JsonConvert.SerializeObject (result, Formatting.Indented, JsonnetSetting()) + "\n" + JsonConvert.SerializeObject (purchase, Formatting.Indented, JsonnetSetting()) + "\n" + "webhookMessage: " + webhookMessage; if (result.ResultCode == IapResult.SUCCESS) { _sample.PurchaseToken = purchase.PurchaseToken; } }