Item and Purchase Retreival

Hi,

I have been searching the documentation for some help on this however I have not yet come to a definitive answer.

I can find examples as to how to make a virtual purchase with a static item ID, however, I don’t understand exactly how to go around dynamically populating an in game store from data stored for inventory items and purchases.

I assumed that there would be some simple api endpoint to call to retrieve a list of all available inventory items or purchases but I can’t see any evidence of this.

Is this something that is simply not possible or have I just missed some piece of documentation.

Any help would be greatly appreciated.

Thanks.

After digging around in the source for the Economy package it was actually much simpler than I had anticipated. You locally cache the current configuration by calling SyncConfigurationAsync() on the Configuration object of the EconomyServices.instance field once initialization has been completed.

After SyncConfigurationAsync() is done you can call GetInventoryItems() (and others) on the Configuration object to retrieve any information stored on the economy service.

Hope that is of use to anyone that overlooked the documentation similarly to myself

1 Like