Play Store - Load Products / Consumables

Hi everyone !

I’m currently working on my first Corona app, and have some troubles with the  store API. In fact, I think the problem is I don’t fully understand 2 main points :

1/. Can you get some informations about your store items without purchasing them ? The goal would be to display the price of my items, that I would get from the store.
I kind of understood you can do it with "store.loadProducts( )" with the AppStore, but what about the Play Store, which return false on store.canLoadProducts ?

2/. How do you “consume” items gotten from the Play Store ? I can purchase some of them with my current code, but when I try to buy them again I have the error “You already bought this item”, whereas I called "store.finishTransaction( event.transaction )" at the end of my storeTransaction listener (I wasn’t really original there, only copying the sample function and adding some  print for the moment).
After reading the documentation, I started to doubt : does the “finishTransaction” even work with the Play Store ? And more important, if it doesn’t (or even if it does) : how do you signal to the Play Store that a consumable item has been used ?

Thanks in advance for the help !

You should be able to buy more consumable items at any time.  You need to make sure they are really consumable.   For Google Play, we are currently using V2 of their system.  V3 gives us the loadProducts() call that works and new functions like useConsumable() which may help you.  This is currently in a closed beta test.  Hopefully more information will be coming soon.

Rob

Thanks for the answer Rob.

I was exactly looking for that useConsumable() function, I guess I’ll make my items unmanaged for the moment. And I’ll be waiting for those informations so !

You should be able to buy more consumable items at any time.  You need to make sure they are really consumable.   For Google Play, we are currently using V2 of their system.  V3 gives us the loadProducts() call that works and new functions like useConsumable() which may help you.  This is currently in a closed beta test.  Hopefully more information will be coming soon.

Rob

Thanks for the answer Rob.

I was exactly looking for that useConsumable() function, I guess I’ll make my items unmanaged for the moment. And I’ll be waiting for those informations so !