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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Bug Android test purchases fail: "Google BillingResponseCode = BillingUnavailable"

Discussion in 'Unity IAP' started by bekici, Sep 26, 2023.

  1. bekici

    bekici

    Joined:
    Nov 1, 2018
    Posts:
    13
    Hi,

    We're experiencing an issue with IAP. Details:
    • Description of your issue
      • I am trying to make a test purchase in our mobile game on Android. But it fails all the time in my device and two of our colleague's device. But it works on one of our colleagues.
      • The last configuration that I've tested was Unity 2021.3.28 + IAP 4.9.4.
      • It was working on our last build (Unity 2021.3.11 + IAP 4.8.0) but it fails now on this setup as well.
      • Another note: I can't make IAP on our other game anymore.
    • Steps to reproduce
      • Start a purchase of a product
      • See the failed log
    • Your purchasing script
      • Purchasing script is the same with last working production release.
    • Device logs
      • 2023/09/26 14:23:06.880
        Warn Unity onPurchaseFailedEvent(productId:xx_remove_ads message: - Google BillingResponseCode = BillingUnavailable)
      • 2023/09/26 14:23:06.880
        Warn Unity UnityEngine.Purchasing.PurchasingManager:OnPurchaseFailed(PurchaseFailureDescription)
      • 2023/09/26 14:23:06.880
        Warn Unity UnityEngine.Purchasing.Extension.UnityUtil:Update()
      • 2023/09/26 14:23:06.880
        Warn Unity
      • 2023/09/26 14:23:06.881
        Warn Unity [LOG]: IAP OnPurchaseFailed: FAIL. Product: 'xx_remove_ads', PurchaseFailureReason: PurchasingUnavailable
      • 2023/09/26 14:23:06.881
        Warn Unity MySdk.Internal.Managers.Purchaser:OnPurchaseFailed(Product, PurchaseFailureReason)
      • 2023/09/26 14:23:06.881
        Warn Unity UnityEngine.Purchasing.Extension.UnityUtil:Update()
    • Unity Version
      • 2021.3.28 / 2021.3.30 / 2021.3.27 / 2021.3.11
    • Unity IAP version
      • 4.9.4 / 4.9.0 / 4.8.0
    • Platform you are building for
      • Android
    • Store you are targeting
      • Android Play Store
    So what could be the reason?
     
  2. noclipstudio

    noclipstudio

    Joined:
    Mar 2, 2021
    Posts:
    71
    Any updates? I'm having the same problem.
     
  3. bekici

    bekici

    Joined:
    Nov 1, 2018
    Posts:
    13
    I didn't get the reason yet, but it works when I use VPN.
     
  4. bekici

    bekici

    Joined:
    Nov 1, 2018
    Posts:
    13
    I had the same problem on production build also. I can't pay with my real card.
     
  5. noclipstudio

    noclipstudio

    Joined:
    Mar 2, 2021
    Posts:
    71
    In my case, the purchase doesn't even work with a VPN.
     
  6. Dev_JH

    Dev_JH

    Joined:
    Oct 6, 2023
    Posts:
    2
    We have same issue.

    Unity LTS 2021.3.31f1
    In App Purchasing 4.9.4

    We have updated to respond to Google Billing Library 5, but the tests continue to fail.

    Failed Message : - Google BillingResponseCode = BillingUnavailable
    Failed Reason : PurchasingUnavailable

    If you find a solution to your problem, please let us know.
     
  7. T-1K

    T-1K

    Joined:
    Jun 1, 2021
    Posts:
    3
    Same issue,

    Unity LTS 2021.3.14f1
    IAP 4.8.0/4.9.4

    Failed Message : - Google BillingResponseCode = BillingUnavailable
    Failed Reason : PurchasingUnavailable
     
  8. xaeroxx

    xaeroxx

    Joined:
    Dec 2, 2012
    Posts:
    17
    Same here,

    We have also same issue with a game that's published 5 months ago. So I guess the problem is server side, not related with Unity or IAP versions..
     
    Last edited: Oct 9, 2023
  9. Dev_JH

    Dev_JH

    Joined:
    Oct 6, 2023
    Posts:
    2
    Unity LTS 2021.3.31f1
    In App Purchasing 4.10.0

    We have updated to respond to Google Billing Library 5, but the tests continue to fail.

    Failed Message : - Google BillingResponseCode = BillingUnavailable
    Failed Reason : PurchasingUnavailable

    ---------------------------------------------------------------

    We have updated 4.9.4 to 4.10.0 but still have same problem.

    But we found one weird solution.

    If you have multiple Google accounts on your device, delete all but one and the test will run normally.
     
    Last edited: Oct 13, 2023