Exemple #1
0
        public void onPurchaseUpdateSucceeded(List <string> revoked, List <string> purchased)
        {
            foreach (string r in revoked)
            {
                callback.onPurchaseRefundedEvent(r);
            }

            foreach (string p in purchased)
            {
                callback.onPurchaseSucceeded(p, string.Empty);
            }
        }
Exemple #2
0
        public void onPurchaseUpdateSuccess(string json)
        {
            Dictionary <string, object> response = (Dictionary <string, object>)Unibill.Impl.MiniJSON.jsonDecode(json);

            var restored = response.get <List <object> > ("restored");

            foreach (Dictionary <string, object> restoredItem in restored)
            {
                callback.onPurchaseSucceeded(restoredItem.getString("sku"), restoredItem.getString("receipt"));
            }

            var revoked = response.get <List <object> > ("revoked");

            foreach (string revokedItem in revoked)
            {
                callback.onPurchaseRefundedEvent(revokedItem);
            }

            if (!finishedSetup)
            {
                finishedSetup = true;
                callback.onSetupComplete(true);
            }
        }
 public void onPurchaseRefunded(string item)
 {
     callback.onPurchaseRefundedEvent(item);
 }