How to implement in-app purchase on Godot 3.2.2

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

Hi, I am currently struggling to implement in-app purchase for my project. I have successfully integrated the plugin as the document suggested so now it’s down to the IAP.gd script part. So for the previous method to purchase an item I would simply call this function:

func purchase(item_name):
–>if payment:
----->payment.purchase(item_name, “transaction_id”)

So what’s the simplest way in Godot 3.2.2 for doing this?

Thanks for your time.

Did you find an answer to this?

hamza_memon | 2020-11-20 08:25