Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Can't import the IAP store package

Discussion in 'Unity IAP' started by zhukovv, Jul 18, 2021.

Thread Status:
Not open for further replies.
  1. zhukovv

    zhukovv

    Joined:
    Nov 4, 2019
    Posts:
    16
    Hello, I cannot finish IAP setup after update to Unity 2020.3.6f1 and IAP 3.0.2 (or 3.2.3).
    The import button is missing, see the attached screenshot.
    I develop for iOS using Mac. IAP and Analytics modules are enabled, the project doesn't have any compiler errors. I tried reinstalling IAP, restarting Unity or using an empty project - the button is still missing.

    With the older versions everything was fine, we had in-app purchases in our game. Couldn't find anything in Google, only a post on Unity Answers with no replies - https://answers.unity.com/questions/1833721/cant-import-iap-store-package.html

    Thank you in advance.
     

    Attached Files:

  2. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    You no longer "Import" IAP. You install IAP now from Package Manager.
     
  3. zhukovv

    zhukovv

    Joined:
    Nov 4, 2019
    Posts:
    16
    Hi Jeff,

    I did install IAP via the Package Manager.
    But, according to the official manual after that I need to "Click Import to import Unity’s IAP’s store package Asset to access app store functionality on the following platforms... The Unity IAP Installer will take you through the Asset package import process. This adds a new folder Assets/Plugins to your project, containing the Unity Purchasing assets required to use Unity IAP"
    https://docs.unity3d.com/Packages/com.unity.purchasing@3.0/manual/UnityIAPSettingUp.html

    But I don't have this button, as I showed on a screenshot in my first post, that's why I'm asking.

    I'm attaching how it looks in my setup (without the button) and how it looks in the manual (with the button).
     

    Attached Files:

  4. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    Once you import via Package Manager, you are done. The import button will be removed in a future Unity release. You will want to add the Google key on your Unity Dashboard. But it's optional and not needed for IAP to function properly. It's only used for reporting IAP revenue on the Unity Dashboard, but developers typically track their revenue on their Apple and Google developer dashboards.
     
  5. zhukovv

    zhukovv

    Joined:
    Nov 4, 2019
    Posts:
    16
    Thank you, the issue was that after installing via Package Manager even the In App Purchasing sample gave errors and in the GameFoundation settings the Purchasing enabled tick was off and disabled, grey.
    But now I reinstalled everything again and it seems to work, at least no errors and the tick is enabled and accesible)
     
    JeffDUnity3D likes this.
  6. IsouEU

    IsouEU

    Joined:
    Aug 4, 2018
    Posts:
    12
    Should remove this "Import our store package to get started on" warning from "Welcome" if this no logger needed...
     
  7. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    Can you share a screenshot?
     
  8. Akibaboy

    Akibaboy

    Joined:
    Apr 14, 2022
    Posts:
    1
    I am getting the same thing, here's a screenshot
     

    Attached Files:

  9. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    That is a different issue, not related to importing the package. You can enter the key on the legacy Analytics dashboard under Settings. FYI, the key is optional and will not affect your IAP operation. It's only used for reporting on your dashboard. I will go ahead and lock this thread now.
     
Thread Status:
Not open for further replies.