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

Google Play Billing Library — Questions ⭐

Discussion in 'Unity IAP' started by makaka-org, Jul 5, 2020.

Thread Status:
Not open for further replies.
  1. makaka-org

    makaka-org

    Joined:
    Dec 1, 2013
    Posts:
    878
    1. What version of Google Play Billing Library is used in Unity IAP? I got the next message in Google Play in subscription settings: "Resubscribe is not currently available for your users because your app does not use Billing Library 2.0 in all active APKs"
    2. When version 3 will be supported?
     
    Last edited: Jul 5, 2020
  2. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    We are working on it and in legal discussions with Google that have stalled. No ETA.
     
  3. cvillena

    cvillena

    Joined:
    Aug 28, 2015
    Posts:
    6
    I'm a bit confused here. Unity Docs says Unity IAP uses Google Billing Libray 3.0

    "Unity IAP uses V3 of Google’s Billing API, which features the concept of consumable products and explicit consumption API calls."
     
  4. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    Can you provide the link?
     
  5. cvillena

    cvillena

    Joined:
    Aug 28, 2015
    Posts:
    6
  6. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    That is referring to the version of the AIDL. IAP now uses Version 7 of the AIDL, which is associated with the implementation. However Google has released V2 of their Billing Library, which is higher-level than the AIDL. https://developer.android.com/google/play/billing/api
     
  7. Hash-Buoy

    Hash-Buoy

    Joined:
    Jan 4, 2014
    Posts:
    33
    @JeffDUnity3D It looks like resubscribe and account hold needs to be implemented from 1 Nov .
    Is there any update to IAP package?
    asdasd.PNG
     
    makaka-org likes this.
  8. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
  9. Hash-Buoy

    Hash-Buoy

    Joined:
    Jan 4, 2014
    Posts:
    33
    OK thanks!!!
     
  10. JustAnotherDude

    JustAnotherDude

    Joined:
    Oct 28, 2013
    Posts:
    279
    Just to be clear, no version of Unity IAP uses V2 of billing?

    Only V3 is being added on:

    "## [2.2.0] - 2020-11-06

    ### Changed
    - GooglePlay - Upgrades to Google Play Billing Library v3.0.1. This replaces the Google Play AIDL implementation."

    ?
     
  11. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    Yes, all versions prior to 2.2.0 use v2, Google (sometimes) refers to this as their AIDL version. Why do you ask, if I may inquire?
     
  12. JustAnotherDude

    JustAnotherDude

    Joined:
    Oct 28, 2013
    Posts:
    279
    Because I'm seeing this on the Console:

    "Resubscribe is not currently available for your users because your app does not use Billing Library 2.0 in all active APKs"

    I'm currently using Unity IAP 1.23.1...
     
  13. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    Yeah, Google has not been consistent. I suspect this is only a warning?
     
  14. JustAnotherDude

    JustAnotherDude

    Joined:
    Oct 28, 2013
    Posts:
    279
    Yeah it's a warning, I haven't tested if resubscribe actually doesn't work yet or not though...
     
  15. makaka-org

    makaka-org

    Joined:
    Dec 1, 2013
    Posts:
    878
    With Unity IAP 1.23.5 I still able to upload .aab to Google Play.
    I also guess that this is the most stable version for iOS for now.
     
  16. DidzTM

    DidzTM

    Joined:
    Jan 30, 2018
    Posts:
    17
    Hi,


    To implement this, I follow the Google play Doc: https://developer.android.com/google/play/billing/unity

    It is correct to follow it ?


    When all is done, I have that build error who is returned :

    It seems that InApp already have google billing library. What is the best way of correct it in gradle ?




    What finally we must do ? Use only IAP and don't follow this ?

    And what about this section in the google play billing doc ?

    If you do it and not add the custom google billing package, an error appear in the editor...


    Thanks in advance!
     
    Last edited: Dec 2, 2020
    alipaknahad likes this.
  17. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    Please do not multipost, and please do not follow the Google documentation.
     
  18. abbubakar_57

    abbubakar_57

    Joined:
    Nov 23, 2020
    Posts:
    12
    is their any update
     
  19. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    Unity IAP has been using Google Billing v3 for some time now
     
    Idodi1337 and makaka-org like this.
  20. wiganda

    wiganda

    Joined:
    Feb 24, 2018
    Posts:
    14
    I'm using unity 2019.4.17f1 with unity IAP v2.2.1 but after uploading to google it still indicates a warning saying that my app is not using google play billing v3? Okay after updating in the package manager to unity IAP v2.2.2 then uploading to google, i didn't get any warning msg anymore.
     
    Last edited: Feb 3, 2021
  21. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    A little confusing, there are two components needed for IAP currently. You need to upgrade to IAP 2.2.7 (Asset) and In App Purchasing library (Package Manager). From the Window menu, choose Unity IAP/IAP Updates... to upgrade. As always, make a full project back up before upgrading any components.
     
    dpodz_the_grey likes this.
  22. SevenPointRed

    SevenPointRed

    Joined:
    Feb 3, 2016
    Posts:
    207
    There doesn't seem to be any verified version for 2018.4 in the package manager.
     
  23. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    I see In App Purchasing 2.2.2 in Package Manager available in Unity 2018.4.27f1 LTS . Locking this thread, off topic.
     
Thread Status:
Not open for further replies.