Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

(SOLVED) Do I have to delete the Unity IAP (obsolete)? Keep receiving message for update

Discussion in 'Unity IAP' started by Dudusstar, May 5, 2021.

  1. Dudusstar

    Dudusstar

    Joined:
    Nov 19, 2020
    Posts:
    59
    Hi, I don't if this is the right place to post this. When I open my Unity editor I receive this attached popup message

    popup.PNG

    But If I check I got this Obsolete version of Unity IAP only in my assets, not in my project.

    myassets.PNG

    As you can see, is not downloaded. Instead of this, I got instaled in my project the In-App purchasing asset:

    inapppurchasing.PNG
    In my unity menu I can check this options:

    image_72192707.JPG

    When I check the IAP Updates you see in this image, it shows me this:

    updates.PNG

    And brings me to the obsolete asset in the manager to download.

    I'm already testing (internally via google play) the IAP purchases and it works fine. But I'm worried about this obsolete version that will no function anymore on june. I followed this tutorial to implement the IAP purchase button:



    Do I have to worry about the pop up message? Is there maybe any part of the plugin in my project?

    Sorry because I'm a noob game designer using unity and it's difficult for me to know what I'm doing.

    Thank you so much for your help and support.
     
  2. Dudusstar

    Dudusstar

    Joined:
    Nov 19, 2020
    Posts:
    59
    This is my button configuration

    iap.PNG

    And this is the script:

    Code (csharp):
    1.  
    2. using System.Collections;
    3. using System.Collections.Generic;
    4. using UnityEngine;
    5. using Bolt;
    6. using UnityEngine.Purchasing;
    7. using System;
    8. using UnityEngine.SceneManagement;
    9.  
    10. public class PurchaseGame : MonoBehaviour
    11. {
    12.     private string purchasedgame = "com.developer.game.purchasegame";
    13.     public void OnPurchaseComplete(Product product)
    14.     {
    15.         if (product.definition.id ==purchasedgame)
    16.         {
    17.             Variables.Saved.Set("HasBoughtGame", true);
    18.             SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex);
    19.             Debug.Log("gAME Purchased");
    20.         }
    21.  
    22.     }
    23.    
    24.  
    25.     public void OnPurchaseFailed(Product product, PurchaseFailureReason reason)
    26.  
    27.     {
    28.         Debug.Log("Purchase failed");
    29.        
    30.     }
    31. }
    32.  
    33.  
    34.  
     
  3. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    The latest IAP is 3.1.0, install from Package Manager, not Services window. You'll need Unity 2019.4 or higher. Delete /Assets/Plugins/UnityPurchasing and ignore any update messages in the Services window if you choose to upgrade, make a project backup first. It's up to you if you want to upgrade, it will continue to work properly. If it's not broken, don't fix it! The message implies that future versions of IAP will be Package Manager only. Also, and for clarity, IAP doesn't provide an option to "purchase the game" as your productID imples, but only virtual products within the game like gold coins, or a subscription to certain features. I might suggest to start with the Sample IAP Project v2 here https://forum.unity.com/threads/sample-iap-project.529555/#post-6950270
     
    Ievgen0101 and Dudusstar like this.
  4. Dudusstar

    Dudusstar

    Joined:
    Nov 19, 2020
    Posts:
    59
    Thank you so much for the help. I will try it!