The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates. | Twitter

0 votes

I ran the above example on my cell phone. I became a test user. test Purchase completed. What should I do next? What can I do to keep the user's purchases saved? For example, an ad removal request or an item purchased. What should I do so that the ad does not appear again or the item I bought always appears in the game?

Godot version godot 3.2.4 beta6
in Engine by (43 points)

2 Answers

0 votes

I guess this place is deserted.

by (43 points)
0 votes

It's not. But nobody understands why would you want to save user purchases somewhere.

If You want to save user purchases somewhere then save dictionary returned by queryPurchases().

If you think you must save user purchases yourself for iap to work you don't Google does.

You must request purchases from Google with queryPurchases() on app start or user login (depending on your app)

Read full documentation here:

by (887 points)

To be fair, one might want to save a purchase by themselves in order to make such purchase work, even if the player is offline.

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 Frequently asked questions and 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 [email protected] with your username.