godot-google-play-billing icon indicating copy to clipboard operation
godot-google-play-billing copied to clipboard

Can't buy an item

Open FNGEntertainment opened this issue 1 year ago • 10 comments

Hello! Thank you very much for sharing the plugin with us, I have an error and I am using version 2.0.0 of the plugin, the problem is that when I press the buy button, I have two errors:


Mistake

This version of the app was not configured to be billed through Google Play.

[Accept]

and

Mistake

This item you requested is not available for purchase

[Accept]

What can be? I have done the same as in the tutorial, I have followed this https://www.youtube.com/watch?v=qejP2VwvlYE&t=158s I would really appreciate an answer ^^

FNGEntertainment avatar Oct 04 '23 03:10 FNGEntertainment

Did you setup the IAP in the Play Console, and is it "active" there?

NianoTT avatar Oct 04 '23 13:10 NianoTT

Yes! it's active :(

El mié., 4 de octubre de 2023 10:48 a. m., NianoTT @.***> escribió:

Did you setup the IAP in the Play Console, and is it "active" there?

— Reply to this email directly, view it on GitHub https://github.com/godotengine/godot-google-play-billing/issues/56#issuecomment-1746918080, or unsubscribe https://github.com/notifications/unsubscribe-auth/BAFUGMNFTZWKWV26K3JNSUTX5VSL7AVCNFSM6AAAAAA5R6S4G6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBWHEYTQMBYGA . You are receiving this because you authored the thread.Message ID: @.***>

FNGEntertainment avatar Oct 04 '23 20:10 FNGEntertainment

Oh wait, do I copy the code of the files like build.gradle to my project? maybe is that the issue

FNGEntertainment avatar Oct 05 '23 12:10 FNGEntertainment

No, thats not something you have to do.

But I'm wondering, are you trying with an export from the editor? For IAP to work, you need to install it from Google Play - if you are trying with your project deployed to your device from the phone, that won't work*.

* for the first time. As soon you have installed it from Google Play and used the IAP once, you can then uninstall it, deploy from the editor and it will work.

NianoTT avatar Oct 05 '23 12:10 NianoTT

but let's see, I just saw the .gradle settings files and that's what github has, I see mine and they are different, they don't have those lines of code, should I add them? maybe that's the problem.

And yes, I tried to export from the editor and it doesn't work, nor downloading it from Google, I think it must be the files, I don't know.

FNGEntertainment avatar Oct 05 '23 12:10 FNGEntertainment

Normally you should not have to edit it as it's autogenerated.

There must be some step that is missing,.. Did you upload a build to Google Play after you created the IAP? If not, you should do it.

NianoTT avatar Oct 05 '23 12:10 NianoTT

From what I see, it is not generated automatically, because the github has new lines that I do not have, and I do not understand that thing about the iap that you say, you have discord?

FNGEntertainment avatar Oct 05 '23 12:10 FNGEntertainment

Yes, I have created the iap and I have uploaded it to Google as a video I said, but I don't know if it makes sense because before I have tried two Google plugins and they worked without having to upload to Google Play, for example admob and google play services (login , achievements etc)

FNGEntertainment avatar Oct 05 '23 12:10 FNGEntertainment

Come to the Godot discord: https://discord.gg/4JBkykG #mobile-dev channel

Billing is different as it requires Google to update the stuff in the background.

NianoTT avatar Oct 05 '23 12:10 NianoTT

Try this

kyadalu1 avatar Jan 06 '24 09:01 kyadalu1