In Unity SDK there is GetProducts method with this semantics:
public void GetProducts(string[] products, GetProductsFunc callback, string type = "subs")
How we should know this magic strings for “type”?
I want to display Price in game user interface. This price can be obtained through StoreProduct. But I can’t get ANY StoreProduct, because GetProducts alwats return empty array. I wanted to change type from “subs” to anything else, but there is no another constants mentioned in docs \ code.
Please help me to fetch all my products and check prices for them.
Platform: Unity3d, Android & iOS
Best answer by sharif
Hello,
Thanks for the honest feedback, we’ll improve our docs here.
Still can’t understand how this function works. For now we swith to GetOfferings because at least we understand how it works. For this we still need additional explanations \ docs.
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.