godot-sdk-integrations / godot-google-play-billing

Godot Android plugin for the Google Play Billing library
MIT License
156 stars 50 forks source link

Invalid call. Nonexistent function 'isReady' in base 'Nil'. #44

Open vinciarts opened 1 year ago

vinciarts commented 1 year ago

Hi, I followed the doc step by step and also fixed the product_details_query_completed name. On Mac, When I call payment.isReady() I received this error. On Android, the payment is not working.

Godot 4.0.1 godot-google-play-billing 2.0.0-rc.1

Chrompower commented 1 year ago

I have the same issue, using Godot 3.5

NianoTT commented 1 year ago

The error means the Play Billing singleton is not available. You should check for it before using it, so it doesn't error out on platforms other then Android: if Engine.has_singleton("GodotGooglePlayBilling"):

It's only available when running on Android and have a custom export with the Plugin enabled. It will not work in the desktop editor. (Android Build Template also needs to be installed from Project menu)

kyadalu1 commented 10 months ago

Try this