Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Zaramath |
I am trying to put the option to buy in my Godot project. I have managed to know if I have already bought or not but I don’t know how to make the buy button show up.
var InAppStore = Engine.get_singleton(“InAppStore”)
var result = InAppStore.purchase( { “my-id-purchase”: “name_id” } )
if result == OK:
#continue game
else:
#show in app purchase button
Read this https://docs.godotengine.org/en/stable/tutorials/platform/services_for_ios.html all of it. Purchases on IOS have nothing to do with Android or Engine.getsingleton
(If i get it correctly sigleton already exists if iap enabled you just use it). I don’t have iphone to test.
yrtv | 2021-02-07 13:13