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

            if (success)
            {
                callback.onTransactionsRestoredSuccess();
            }
            else
            {
                callback.onTransactionsRestoredFail(string.Empty);
            }
        }
Beispiel #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();
            }
        }
Beispiel #5
0
 public void restoreTransactions()
 {
     enumerateLicenses();
     callback.onTransactionsRestoredSuccess();
 }
 public void onTransactionsRestoredSuccess()
 {
     biller.onTransactionsRestoredSuccess();
 }
 public void onTransactionsRestoredSuccess()
 {
     restoreInProgress = false;
     biller.onTransactionsRestoredSuccess();
 }