IAP: BuyProductID: FAIL. Not initialized In-App Purchases error

I’m asking this question here because it seems Apple related and not Unity3D related: https://forums.developer.apple.com/message/390309

However, they asked me to ask here, so that I’m doing as well:

We have been weeks trying to solve this issue. The review team says it’s a bug of our App… However it worked right after adding bank and taxes on https://appstoreconnect.apple.com.

Unfortunately, when the review team reviewed it, it stopped working with the error “BuyProductID: FAIL. Not initialized”. We checked it again, it was not working for us either.

So it seems to work or not randomly. Or at least it was working, then it stopped to work without changing anything.

Any idea of what could be going on?

The thing is that the same app works sometimes and sometimes do not. As far as I know, we do not use any server besides the Apple IAP service. So if the same code sometimes works and sometimes do not and the only thing that can be different is related to Apple. I think the issue is Apple related, so that’s why I’m asking here. Don’t you think? Thanks for your answer!

As I said it worked a short time after adding bank details and taxes form on Apple. Then it stopped working after one day and no changes. Apple reviewevers says it’s something about the code, but the code has not changed… Why it was working during some time then stopped if the code is the same?
e this issue. The review team says it’s a bug of our App… However it worked right after adding bank and taxes on https://appstoreconnect.apple.com.

Unfortunately, when the review team reviewed it, it stopped working with the error “BuyProductID: FAIL. Not initialized”. We checked it again, it was not working for us either.

So it seems to work or not randomly. Or at least it was working, then it stopped to work without changing anything.

Any idea of what could be going on?

Thanks

Carlos

Is it not working in your current testing? Please provide the device logs if so How To - Capturing Device Logs on iOS I’ve heard of reports like this in the past when their test environment is having issues. In your case, it sounds like Initialize succeeded, but then only purchases fail? The logs will tell.

Actually the error says: FAIL. Not initialized, so initialize did not succedded

It’s working on Android / Google Play, by the way.

We can’t capture errors in that way because no one have both Mac and iPhone. I’ve Mac, but not iPhone. The other devolper has iPhone, but not Mac xD

Someway to print the output logs on the app itself?

Thankss

So you’ve been publishing to the App Store without testing on an actual device? Probably not the best approach, which probably led to this situation. Can’t you two developers just get together to test their device on your Mac? This IAP Sample App outputs the log to the UI (very handy!) Sample IAP Project

I had this problem when I had the wrong product ID, so it was not found.