Search Unity

OnInitializeFailed InitializationFailureReason:NoProductsAvailable

Discussion in 'Unity IAP' started by Pancar, Dec 2, 2018.

  1. Pancar

    Pancar

    Joined:
    Mar 11, 2013
    Posts:
    24
    Hi,
    Im trying to iap on android
    but ım getting erros like this


    OnInitializeFailed InitializationFailureReason:NoProductsAvailable

    12-03 01:15:49.651 1419 1444 W Unity : Unavailable product 5_hak -5_hak

    12-03 01:15:49.652 1419 1444 W Unity : Unavailable product 20_hak -20_hak


    mycode;

    public static string BesHak = "5hak ";

    var builder = ConfigurationBuilder.Instance (StandardPurchasingModule.Instance ());
    builder.AddProduct (BesHak, ProductType.Consumable);
    UnityPurchasing.Initialize (this, builder);


    Thanks...
     

    Attached Files:

  2. unityjingyao

    unityjingyao

    Unity Technologies

    Joined:
    Feb 20, 2017
    Posts:
    220
    Hi,
    The product id is '5_hak' on your Google Play Console, but it's '5hak' in your code.
     
  3. Pancar

    Pancar

    Joined:
    Mar 11, 2013
    Posts:
    24
    sory :) , i typed wrong but my code is ok.
     

    Attached Files:

  4. unityjingyao

    unityjingyao

    Unity Technologies

    Joined:
    Feb 20, 2017
    Posts:
    220
    Hi,
    Have you released your app to Alpha or Beta testing in Google Play Console?
    You need to use other Google accounts to test IAP, and assign the “test users” to be granted special license testing permissions, allowing them to purchase any IAP for free for this application, and register them as Alpha Testers.
    Please follow the instructions on the page below.
    https://docs.unity3d.com/Manual/UnityIAPGoogleConfiguration.html
     
  5. Pancar

    Pancar

    Joined:
    Mar 11, 2013
    Posts:
    24
    I added my first apk and i created test users list, i didnt create second alpha channel but i guess everything is fine for now on developer console.
    Im waiting response from googleplay-support for this situation.
    Have you other advice ?
    Thanks...
     
  6. unityjingyao

    unityjingyao

    Unity Technologies

    Joined:
    Feb 20, 2017
    Posts:
    220
  7. Pancar

    Pancar

    Joined:
    Mar 11, 2013
    Posts:
    24
    I added some screenshots, everyting is ok for now.
    My apk in the closed alpha but gp took from me real money,i dony know why.Have you any solution for this?
    Thanks...
     
  8. unityjingyao

    unityjingyao

    Unity Technologies

    Joined:
    Feb 20, 2017
    Posts:
    220
    You should also need to add Google Account email addresses for testers who will be granted a license to purchase any IAP for free via the Developer Console’s Settings > Account details > LICENSE TESTING section.