Setup IAP for android

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By THE HELIX

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 ?

did you check logs with adb logcat?

volzhs | 2019-03-05 13:37

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

ruruarchy | 2019-12-21 18:24