0 votes

I setup the iap in godot by modules. When i press buy button google tester account opens and i purchase the coin. The coin is added to coin collected. When i again press buy button Google tester account opens and i cancel the purchase but also coin is added even after cancelling. How to set it up such that coin is added only after purchase is success?

in Engine by (140 points)

1 Answer

0 votes

Does the code check the return of the call to the store or does it just assume that it succeeded? Found a demo project here

by (911 points)
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.