I implemented Google In-App Billing V3 in my application and I made my first test purchase. Now, as you can see, I want it to be consumed, but if I press the Buy button again, I get an error, I wonder how and where to insert the consumePurchase. I worked all day on a computer search in each thread, but I am confused with older versions of the same. From what I saw, I need to call consumePurchase after a successfully purchased item. And when the action is created, but I canβt figure out how to do it.
Is this the only line of code?
int response = mService.consumePurchase(3, getPackageName(), token);
If so, what is a token?
Ps consumables: 50, 150 and 300 coins that the user can buy to get a slight advantage in the game.
Ahh, so confusing for me: /
source
share