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

[Closed] PurchaseFailureReason: Unknown

Discussion in 'Unity IAP' started by pohungc, Jan 8, 2016.

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

    pohungc

    Joined:
    Mar 31, 2013
    Posts:
    2
    I have a beta tester for a game I'm working on who cannot get the IAP to work. I have the app up on TestFlight and it seems to work for me just fine.

    OnPurchaseFailed is getting called but all it reports is PurchaseFailureReason.Unknown. I tried to reproduce this by setting my device to airplane mode. Is there a better way to get a more detailed error? For example if the device has a bad connection it just reports PurchaseFailureReason.Unknown.
     
  2. Banderous

    Banderous

    Joined:
    Dec 25, 2011
    Posts:
    669
    Are they testing with a valid iTunes Connect test user account?

    Unity IAP will map Apple's error codes to Unity IAP's PurchaseFailureReason but unfortunately if you look at Apple's error codes they are very minimalist, and in practice 'Unknown' is returned most often by storekit.
     
  3. pohungc

    pohungc

    Joined:
    Mar 31, 2013
    Posts:
    2
    They're using the account I provisioned in the external testers list. It's how they were able to get a build in the first place. What's strange is that one of the testers was able to use IAP successfully with no problems, and his account isn't setup any differently from what we could tell.
     
  4. Banderous

    Banderous

    Joined:
    Dec 25, 2011
    Posts:
    669
    You could raise a TSI with Apple asking why the account won't work.
     
Thread Status:
Not open for further replies.