Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Codeless IAP initialize fail problem with 2.2.4

Discussion in 'Unity IAP' started by unityfreeman, Dec 9, 2020.

  1. unityfreeman

    unityfreeman

    Joined:
    May 21, 2019
    Posts:
    8
    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
     

    Attached Files:

  2. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    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.
     
  3. unityfreeman

    unityfreeman

    Joined:
    May 21, 2019
    Posts:
    8
    All checkbox is cleared.

    I tried without vpn. Still fail.

    Here is the screenshot, catlog, and log.
     

    Attached Files:

  4. Eelcapitan

    Eelcapitan

    Joined:
    Dec 1, 2015
    Posts:
    5
    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?
     
  5. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    You might want to try with 1.23.1, we will test Codeless too
     
  6. MatthieuSmith_Unity3D

    MatthieuSmith_Unity3D

    Unity Technologies

    Joined:
    Oct 16, 2020
    Posts:
    23
    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.
     
    nicholasr likes this.
  7. unityfreeman

    unityfreeman

    Joined:
    May 21, 2019
    Posts:
    8
    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!
     

    Attached Files:

    • log1.txt
      File size:
      12.2 KB
      Views:
      217
    • log.txt
      File size:
      10.7 KB
      Views:
      234
  8. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    @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?
     
  9. unityfreeman

    unityfreeman

    Joined:
    May 21, 2019
    Posts:
    8
  10. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    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)
     
  11. unityfreeman

    unityfreeman

    Joined:
    May 21, 2019
    Posts:
    8
    @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.