godotengine / godot-google-play-billing

Godot Android plugin for the Google Play Billing library
MIT License
138 stars 39 forks source link

this work for godot 4? #43

Open faus1000 opened 1 year ago

faus1000 commented 1 year ago

how to use this plugin for godot 4

code-with-max commented 1 year ago

No. Method getSkus is deprecated. If you want use this plugin - you must using getProducts() manually.

https://developer.android.com/reference/com/android/billingclient/api/Purchase#getProducts()

PickleJesus123 commented 8 months ago

I have been using release 2.0.0-rc.1 in my Godot 4 project and it seems to be working. You need to rename a few variables/methods, but it's mostly the same. All name changes seem to be decently documented in the official tutorial

NianoTT commented 8 months ago

Master + #52 (which is the latest, supported version) is Godot 4 compatible without changes (and matches the docs unlike 2.0-rc1) - also uses a newer Billing API so it's preferable.

If you don't want to compile is, here is a ready to use release: https://github.com/finepointcgi/godot-google-play-billing

kyadalu1 commented 6 months ago

Try this