[Solved] Codeless IAP button fail on google play

I encounter ""Purchase failed because Purchasing was not initialized correctly." both on ios and android before. It turn out that I set may store id overwrite wrong. I change the overwrite id for ios and google . Now ios works fine but android still got "Purchase failed because Purchasing was not initialized correctly.". How you guys setup the overwrite store id? something like “xx_xx.remove_ads” you setup on google play?

I use alpha test and publish the apk to google play.I set up the test account in LICENSE TESTING.
I double check the store id in google play, check the price in google configuration, And also I setup window->unity iap->android->google play. Finally I still got Purchase failed because Purchasing was not initialized correctly in logcat. The IAP button just not work.

I stuck here for a whole day. Pls someone help me. Thank you!

Finally i solve the problem, hope it will help others.I had a empty product in the IAP catalog. It works after I removed this empty product. But I didn’t try to put more produce into the catalog, I don’t know if more than one product will cause the problem or not.

2 Likes