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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Difference btw availableToPurchase VS enabled?

Discussion in 'Unity IAP' started by giggioz, Nov 9, 2020.

  1. giggioz

    giggioz

    Joined:
    May 11, 2017
    Posts:
    52
  2. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    Apparently a product can be availableToPurchase (approved on the store) but not enabled. What problem are you trying to solve?
     
  3. giggioz

    giggioz

    Joined:
    May 11, 2017
    Posts:
    52
    I wanted to display some IAP products on the UI depending on their state in the Google Play Console (Active/Non Active).
    I was using availableToPurchase (and it worked fine) but then I found the 'enabled' field and I started to question my implementation.

    I still need to test this with Apple Store.
     
    JeffDUnity3D likes this.