Hello everyone,
One of our users said that he isn't able to buy a stackable item by a virtual currency in our game. When I looked at the inventory, I saw this:
To give more information, I make the purchases by using Cloudscript. I'm not using the Purchase API.
As it can be seen from the image, the first attempt of buying "Yellow Container" looks like succeeded. However, the inventory says expired and the usage left is 0. The next one looks like succeeded too, however, it's red stacked. (The revoked one is my action. I clicked the Revoke button near it to see if it will work. It was same as the others.)
When all of the purchases were made, the related virtual currency didn't decrease in that process. So that I thought, the Cloudscript function throws an error before executing the reduction line. However, the client doesn't see any error, which means the Cloudscript returns the correct value. If it had returned a different value, the client would've seen an error message. I also tried executing the same Cloudscript function by using "Cloud Script" tab in the player's profile and the script is executed successfully, and the item was in the inventory.
The only thing I can think of is that the Cloudscript function failed while executing it. The function granted a yellow container to the player and then it failed somewhere in the code. That's why they are red stacked. However, when I tried to execute the same function over the same player, it didn't give me any error. What could be the issue?