Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vinciarts opened this issue Mar 26, 2023 · 3 comments
Open

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

vinciarts opened this issue Mar 26, 2023 · 3 comments

Comments

@vinciarts
Copy link

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
Copy link

I have the same issue, using Godot 3.5

@NianoTT
Copy link

NianoTT commented May 18, 2023

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
Copy link

kyadalu1 commented Jan 6, 2024

Try this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants