I can’t initialize codeless iap or iap in my google play project. My unity version is 2019.2.17f1. Any one meet the same problem? Please help me solve this wired problem.
Problem:
1.Initialize can start but no callback.
2.When tap buy button, it show not initialized.
Here are what I have done:
1.Use code IAP with version 2.0.8, 2.2.1, 2.2.2, 2.2.3, 2.2.4
2.Use codeles IAP with Version 2.2.3, 2.2.4
3.Upload aab to google play console as Alpha, Beta and Release Version.
4.Use non-developer account, developer account and add another account as test user.
5.Change vpn country to USA, HongKong, Japan, Singapore.
6.Change google play product name “noads”, “com.rikigame.tapball.noads”.
7.Finish developer and test account payment setting.
8.Add visa card to developer account.
Please try without VPN, IAP is not initializing. Make sure you have all the checkboxes cleared on your Google dashboard. Please show your products as defined on your Google dashboard (screenshot) as well as the products defined in your Catalog.
I have the same issue here. I get a null reference exception when the app starts up. When the IAP Button gets clicked the console says (on the Phone not in Unity console) that it could not be bought because the the Purchaser was not Initialized correctly. Which version of IAP works properly?
First of all I want to say sorry and thank for reporting this bug.
I have investigated the issue and added an automated test so it will not happen again. The fix for this will be in the 2.2.5, which should be coming out by the end of this week or next week.
@unityfreeman You may be blocked in China. Does your test device have Google Play installed? Have you uploaded a build to Google Play, and then downloaded it to test?
I installed your app, and it prompted me for my credit card to purchase the NoAds product for $2.99. I cancelled at that point. Are you seeing the same popup purchase dialog? I might suggest however that you not publish your app publicly if it has known issues, you could get bad reviews. You should add test accounts as testers, so they are not charged, and publish as a beta test only (not release)