Search code examples
actionscript-3flashflash-builder

In app billing milkman ane


Every time I am trying to use

AndroidIAB.androidIAB.consumeItem("coin_stack_2");

I get : failed:4040/The item 'coin_stack_2' was not previously loaded.

==> it's happening for all of my products that I'm trying to sell as a consumeItem

I have loaded the the function below at the start of the application :

AndroidIAB.androidIAB.loadPlayerInventory();

What am I doing wrong?


Solution

  • In order to use consumeItem the user should purchase the item first and only than it is possible to use consumeItem