0 votes

I created a shop button in my project . when i pressed it shop menu opens
enter image description here

I added a script to shop_open
enter image description here

And added this script to the buttons like (2 coin, 3 coin etc).
enter image description here

and whenever i pressed the button the coins needed to be bought ,but it didn't happen.
So i created a IAP singleton(autoload) script like
enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

But when i press the buy button ($1) , i get nothing output.
nothing is printed like purchase is cancelled or bought .
Can anyone help me setting up the IAP in my project ?

in Engine by (141 points)

did you check logs with adb logcat?

did you have been add func _on_button_pressed(): signal ?

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.