Exemple #1
0
 public void RestorePurchase()
 {
     if (!SoomlaStore.TransactionsAlreadyRestored())
     {
         SoomlaStore.RestoreTransactions();
     }
 }
Exemple #2
0
    public void RestoreRemoveAds()
    {
        Debug.Log("restoring: remove ads");
        IAPHandler.errorMsg = "Waiting...Connecting to store.";

        if (Application.platform == RuntimePlatform.Android || Application.platform == RuntimePlatform.IPhonePlayer)
        {
            SoomlaStore.RestoreTransactions();
        }
        else
        {
        }
    }
Exemple #3
0
 // Use this for initialization
 public void click()
 {
     googleAnalytics.LogEvent(new EventHitBuilder()
                              .SetEventCategory("Button")
                              .SetEventLabel("removeAds")
                              .SetEventAction("click"));
     if (StoreInventory.GetItemBalance(boutique.NO_ADS_LTVG.ItemId) <= 0)
     {
         try {
             SoomlaStore.RestoreTransactions();
         } catch (Exception e) {
             Debug.LogError("SOOMLA/UNITY " + e.Message);
         }
         try {
             StoreInventory.BuyItem(boutique.NO_ADS_LTVG.ItemId);
         } catch (Exception e) {
             popUpErreur.SetActive(true);
             Debug.LogError("SOOMLA/UNITY " + e.Message);
         }
     }
 }
 public void restorePurchases()
 {
     SoomlaStore.RestoreTransactions();
     isFullUnlocked();
 }
 public void RestoreTransactions()
 {
     SoomlaStore.RestoreTransactions();
 }
Exemple #6
0
 public void restorePurchases()
 {
     Debug.Log("Restoring previous purchases!");
     SoomlaStore.RestoreTransactions();
 }
Exemple #7
0
 public void onRestoreInapp()
 {
     SoundManager.Instance.PlayClickSound();
     SoomlaStore.RestoreTransactions();
 }
 public void RestoreApp()
 {
     Events.OnLoading(true);
     SoomlaStore.RestoreTransactions();
 }