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

IAP 1.23.1 OnPurchaseFailed Unknown

Discussion in 'Unity IAP' started by sdalex, Dec 6, 2019.

  1. sdalex

    sdalex

    Joined:
    Dec 17, 2014
    Posts:
    21
    I tried to submit a new app for iOS and Apple reject the app because they can't purchase the IAP.
    It failed with the OnPurchaseFailed that returns the "Unknown" reason!

    I'm using Unity2018.4.13.

    Using a sandbox user it work correctly. But using a real user always return "Unknown".
    I tried a new project with very few codes and still have the same problem.

    If I upgrade the project to Unity2019.2.15, the initialization returns NoProductsAvailable.
     
  2. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
  3. sdalex

    sdalex

    Joined:
    Dec 17, 2014
    Posts:
    21
    Thanks @JeffDUnity3D

    Yes, Business and Tax info is completed and there is no warning.

    There is only one IAP.

    Here the code for the initialization.
    Code (CSharp):
    1. var builder = ConfigurationBuilder.Instance(StandardPurchasingModule.Instance());
    2. builder.AddProduct(COMPLET_PRODUCT_ID, ProductType.NonConsumable, new IDs() { {COMPLET_PRODUCT_ID, AppleAppStore.Name } });
    3. UnityPurchasing.Initialize(this, builder);
    Tell me if you need the entire script. I will have to simplify it before. The code always works before.
    I though maybe something changed in the Unity IAP api. Maybe there is a new option that I need to set?
    I compared with the samples scripts and the only difference is that I'm not specifying the PayoutDefinition.


    Like I said, it work with a sandbox user, it maybe normal that it is not working with a real user when I build directly for the iPad?
     

    Attached Files:

  4. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    What is the value for COMPLET_PRODUCT_ID. And the Dashboard says "Developer Action Needed". And not working is certainly not normal :) How did you install it on the iPad?
     
  5. sdalex

    sdalex

    Joined:
    Dec 17, 2014
    Posts:
    21
    To make sure this is not the code the problem, I have done another test with the IAPDemo. I just modifiy to add my product the IAPDemo.cs script and I have the same behaviour. I first tried with a real account (first log) and also try with a sandbox user (second log).
     

    Attached Files:

  6. sdalex

    sdalex

    Joined:
    Dec 17, 2014
    Posts:
    21
    com.appligogiques.madamword.all_games
     
  7. sdalex

    sdalex

    Joined:
    Dec 17, 2014
    Posts:
    21
    It always become this state after they reject the app. "Developer Action Needed" but doesn't tell what is the problem from there.
    Normally, it in the "Waiting for review" state when I submit a new build again and there are not able to purchase the IAP.
     
  8. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    You released IAPDemo to production? Are you downloading the actual live app from the App Store? And the logs say "No localized title for: com.appligogiques.madamword.all_games. Have your products been disapproved in itunes connect?" but I doubt that is the issue. You can't make purchases with the live app if they have rejected it, as you would expect. I would suggest to make an appeal to Apple, I don't see any issues from here.
     
  9. sdalex

    sdalex

    Joined:
    Dec 17, 2014
    Posts:
    21
    Ok that's the problem! I have to wait for the In-App Purchases before submit the app. Thats why!
    The workflow was not clear to me. I thought I have to do it all in the same time!
     
  10. sdalex

    sdalex

    Joined:
    Dec 17, 2014
    Posts:
    21
    No, I just build the IAPDemo directly to the iPad. I don't know why logs say ""No localized title". Maybe because I have to wait for the IAP to be reviewed!
     
  11. sdalex

    sdalex

    Joined:
    Dec 17, 2014
    Posts:
    21
    But, just how they can review the IAP without the app? Maybe they simply review the informations first!?
     
  12. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    They will review the app rejection and hopefully give you more information