示例#1
0
 public void restoreTransactions()
 {
     #if UNITY_METRO
     enumerateLicenses();
     callback.onTransactionsRestoredSuccess();
     #endif
 }
示例#2
0
 public void onTransactionsRestored(string success)
 {
     if (bool.Parse(success))
     {
         callback.onTransactionsRestoredSuccess();
     }
     else
     {
         callback.onTransactionsRestoredFail("");
     }
 }
示例#3
0
        public void onTransactionsRestored(string successString)
        {
            bool success = bool.Parse(successString);

            if (success)
            {
                callback.onTransactionsRestoredSuccess();
            }
            else
            {
                callback.onTransactionsRestoredFail(string.Empty);
            }
        }
示例#4
0
        public void onPurchaseUpdateSuccess(string json)
        {
            Dictionary <string, object> responseHash = (Dictionary <string, object>)Unibill.Impl.MiniJSON.jsonDecode(json);

            onUserIdRetrieved(responseHash.getString("userId"));

            if (!finishedSetup)
            {
                var products = Util.DeserialiseProductList(responseHash.getHash("products"));
                callback.onSetupComplete(products);
                finishedSetup = true;
            }
            else
            {
                // We must be restoring transactions, which is done automatically
                // on startup so report success.
                callback.onTransactionsRestoredSuccess();
            }
        }
示例#5
0
 public void restoreTransactions()
 {
     enumerateLicenses();
     callback.onTransactionsRestoredSuccess();
 }
 public void onTransactionsRestoredSuccess()
 {
     biller.onTransactionsRestoredSuccess();
 }
 public void onTransactionsRestoredSuccess()
 {
     restoreInProgress = false;
     biller.onTransactionsRestoredSuccess();
 }