Google IAP doesn't work

I am currently testing a new game.

I'm using GS 1.25.101.

Apple's iap works, but Google iap doesn't work.

Is there anything that needs to be reset as it changes to Use Google Billing Client 3.0?

Comments

  • BaguvixBaguvix Member Posts: 54

    Hey @Acroxia , same situation here... did you manage to get Google IAP to work?

  • ArmellineArmelline Member, PRO Posts: 5,385

    This could be a lot of things. First I'd check is - did you add the IAP key in the GameSalad publishing portal? There's no equivalent step for Apple, so it's easy to miss.

  • BaguvixBaguvix Member Posts: 54

    @Armelline Yes, I did. And also checked the box for Google IAP. On Google Play Console, I created the in-app product (matching the ID I used in my game) and activated it. And yet I get no response from the IAP button in my game

  • ArmellineArmelline Member, PRO Posts: 5,385

    Did you use all lowercase letters for your product ID, and have you definitely signed all the relevant contracts and provided your banking details? (Been a while since I did those steps on Google so not sure if they're needed but they are on iOS.)

  • BaguvixBaguvix Member Posts: 54

    @Armelline Lowercase: yes. Banking details: no, I haven't added a payment method yet...maybe that’s the problem?

    You mentioned "signing all relevant contracts"...on Apple, there is a paid app agreement that clearly states that you need to sign it for the IAP to work. However, I didn't find anything similar on Google that I could have missed

  • AcroxiaAcroxia Member, PRO Posts: 63

    @Baguvix iap is still not working.

    @Armelline Yes. I did. Some games have been released, so you can't set the same settings.

  • AcroxiaAcroxia Member, PRO Posts: 63
    edited January 2021

    also. admob doesn't work in iphone. (work in android)

    android : work admob / doesn't work In-app

    Apple : work In-app / doesn;t work admob. (request 22 but not show ad)

  • BaguvixBaguvix Member Posts: 54

    @Acroxia I'm sorry to hear that... I thought maybe you've figured it out.

    When I uploaded my apk I received a warning saying that my app is using an old version of Google Play Billing. I'm not sure if it is related to the issue.

  • ArmellineArmelline Member, PRO Posts: 5,385

    Are you publishing using the "Build RC" button?

  • BaguvixBaguvix Member Posts: 54

    Heey @Armelline , a little update here, I did some debugging and apparently the purchase table is never being filled with the data (callback is always -1 when the behavior is run). Any insights? Thanks

  • BaguvixBaguvix Member Posts: 54
    This is an embed external element. It can be deleted using the delete key or the backspace key. To view the full element, press the preview button below.

    Yes (leaderboards works, by the way)

  • AcroxiaAcroxia Member, PRO Posts: 63
    This is an embed external element. It can be deleted using the delete key or the backspace key. To view the full element, press the preview button below.

    Yes. callback is always -1 when the behavior is run too

  • AcroxiaAcroxia Member, PRO Posts: 63
    edited January 2021

    On Android, callback is -1 for both iap and restore.

  • BaguvixBaguvix Member Posts: 54
    This is an embed external element. It can be deleted using the delete key or the backspace key. To view the full element, press the preview button below.

    @Armelline That was the problem, I just tried "Generate APK" instead of "Build RC"and it worked! Thank you!

    @Acroxia Give it a try and see if it works for you

  • AcroxiaAcroxia Member, PRO Posts: 63
    edited January 2021

    @Baguvix Thanks! I will try it!

  • ArmellineArmelline Member, PRO Posts: 5,385
    edited January 2021

    If using Generate APK fixed the issue I'd best tag @adent42 into this thread so he's aware there's a potential issue with the RC.

  • adent42adent42 Key Master, Head Chef, Executive Chef, Member, PRO Posts: 3,201

    Try pushing a copy of your app as an Alpha or Beta. We found we had to do that to get testing to work with the new billing framework.

  • AcroxiaAcroxia Member, PRO Posts: 63
    edited January 2021

    @adent42 I've registered a new version.

    Google approved it.

    Download it to my Android device through the Play Store.

    I opened a cash shop and bought it.

    The result is only callback -1 printed and the purchase fails.

  • BaguvixBaguvix Member Posts: 54
    edited January 2021


    This is an embed external element. It can be deleted using the delete key or the backspace key. To view the full element, press the preview button below.

    @adent42 same thing here, I promoted my internal testing to a Closed and Open testing track. After Google approved, I tested and IAP still doesn't work 

  • AcroxiaAcroxia Member, PRO Posts: 63

    update new version in google

    Show caution message 'Your app has been verified to use an earlier version of Google Play payment. All app updates must use payment library version 3 or later by November 1, 2021. Please update to version 3 of the payment library before this date.'

  • adent42adent42 Key Master, Head Chef, Executive Chef, Member, PRO Posts: 3,201

    @Acroxia are you using Build RC? We're using Google Billing 3 in that one.

  • BaguvixBaguvix Member Posts: 54
    This is an embed external element. It can be deleted using the delete key or the backspace key. To view the full element, press the preview button below.

    @adent42 I got the same message and I am using Build RC

  • AcroxiaAcroxia Member, PRO Posts: 63
    This is an embed external element. It can be deleted using the delete key or the backspace key. To view the full element, press the preview button below.

    @adent42 Yes. using Build RC

  • adent42adent42 Key Master, Head Chef, Executive Chef, Member, PRO Posts: 3,201

    We may have found the issue, we're working to get a new release out ASAP.

  • AcroxiaAcroxia Member, PRO Posts: 63
    This is an embed external element. It can be deleted using the delete key or the backspace key. To view the full element, press the preview button below.

    Oh! Great News! Thanks.

  • AcroxiaAcroxia Member, PRO Posts: 63

    Thank you very much for this update.

    I still get a message when I update on Google Play after RC build.

    'Your app has been verified to use an earlier version of Google Play payment. All app updates must use payment library version 3 or later by November 1, 2021. Please update to version 3 of the payment library before this date.'

  • bob loblawbob loblaw Member, PRO Posts: 793

    i submitted a new app a few days ago and got the same warning about billing.

  • bob loblawbob loblaw Member, PRO Posts: 793

    the other thing, when tinkering with in app purchases, I followed a tutorial on YouTube. the purchase seems to read as being bought, unless you submit/generate your build with 'unpurchased' already in column 5 of the purchase table.

  • adent42adent42 Key Master, Head Chef, Executive Chef, Member, PRO Posts: 3,201

    Yes you'll continue to get the warning, I believe until we upgrade our build system.

    We are using Billing 3.0 (so it should actually work) past that date, but we hope to have an update that Google will recognize soon.


    We'll look into the 'unpurchased' thing.

Sign In or Register to comment.