Codeless IAP initialize fail problem with 2.2.4

Hi

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.

attach my device log

6602944–751024–CodeIAPlog.txt (7.34 KB)
6602944–751027–CodelessIAPlog.txt (10.1 KB)

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.

All checkbox is cleared.

I tried without vpn. Still fail.

Here is the screenshot, catlog, and log.

6606745--751618--Google Play_1.png
6606745--751621--GooglePlay_2.png
6606745--751624--GooglePlay_3.png
6606745--751627--IAP Catlog.png
6606745–751630–log.txt (10.8 KB)

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?

You might want to try with 1.23.1, we will test Codeless too

Hello,

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.

1 Like

I updated IAP to 2.2.5.

It’s still initialize fail .Here is the device log.

btw:

  1. I’m in China, my google account is located in China. Is this matter?
  2. I just use IAP plugin in unity store, no UDP or unity channel package. - log 1
  3. I add UDP and unity channel package ,still fail ! - log

I can add you to alpha tester group. Please help! I’m stuck for months!

6635254–756847–log1.txt (12.2 KB)
6635254–756850–log.txt (10.7 KB)

@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?

@JeffDUnity3D I have Google Play Installed. And I download from Google Play to test.

Here is the release page : https://play.google.com/store/apps/details?id=com.rikigame.tapball

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)

@JeffDUnity3D Thanks for your help!

I get what’s wrong. My Google account region is China, so I’m blocked.

As your say, you got popup, IAP plugin is fine. But sadly I can’t test IAP myself.