Unity IAP not working in Apple Testflight
Asked Answered
L

3

2

Having issues for the past days trying to make the IAP work on TestFlight for my 1st game app. IAP works fine in Unity Editor (fake store) and also on Google Play (internal test track).

I don't receive any product prices from the apple store and the buy buttons have no effect (no callbacks on ProcessPurchase or OnPurchaseFailed since I show popup windows for both scenarios).

Below is the status of my app and IAP :

Application Status

IAP Status

From other similar threads everything should be ok and working as TestFlight doesn't require the IAPs to be submitted nor it requires for sandbox users to be manually created.

Any hints on what to further test or how could I check logs/warnings/errors are much appreciated, thanks.

Tools used : Unity 2019.3.0 (IAP 2.0.6) and XCode 11.3.1

Update 1: OnInitializeFailed() is called with NoProductsAvailable err

Luannaluanne answered 13/2, 2020 at 8:51 Comment(0)
L
19

The reason why the initialization failed with NoProductsAvailable was because I didn't have an active agreement for paid apps, although it is testflight and there are no real money involved, you still need to have this setup.

Here is how it should look like :

enter image description here Once this was solved the IAPs worked fine.

Luannaluanne answered 14/2, 2020 at 13:59 Comment(3)
This was needed when the app itself was free too.Lamrouex
Here's a link to it appstoreconnect.apple.com/agreements/#Lutanist
Same issue here. For me I did this, deleted all current IAP and created new ones to make it work.Dithyramb
E
0

I was receiving "Received 0 products" until I filled in Contact Info, Bank Info and Tax Info. After Add Tax and active Everthing works fine

Encompass answered 27/12, 2023 at 6:58 Comment(0)
S
0

The other answers are correct, but there are other reasons for IAP not to show up in TestFlight. My solution was to set the app for "Manually release this version":

App Store Version Release

Then, submit the app for release and correct all the errors that have been reported to you. You will see every issue -- Agreements, pricing, subscriptions, age restrictions, etc. Once all problems are fixed, the IAP shows up in TestFlight.

In my case, I didn't have to submit the app for release as there is one more dialog to click through ( confirmation ).

Streamline answered 7/6, 2024 at 10:52 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.