public void purchaseFailed(string Message) { PurchaseResult result = new PurchaseResult(); result.Status = PurchaseStatus.Failed; result.Message = Message; RemoveCallback("purchaseSucceeded"); ExecuteCallBack("purchaseFailed", result); }
//Purchase public void purchaseSucceeded(string JsonData) { PurchaseResult result = new PurchaseResult(); result.Status = PurchaseStatus.Success; result.Purchase = Purchase.Parse(JsonData); RemoveCallback("purchaseFailed"); ExecuteCallBack("purchaseSucceeded", result); }