Hi, I am integrating In App purchase and want to get all registered product list from my Roku channel app. I am using ChannelStore node for it and set its fakeServer property to false so it will show me real product instead of fake product and set an observer catalog on ChannelStore for getting product list of my channel app but instead of showing my registered products list, it's showing me three product list from its roku default channel with name "Product 1", "Product 2" and "Select this to simulate a failed purchase error". I also changed my channel title with the registered roku channel name but still not get it. So, can anyone suggest me how can I fetch my products list from my roku channel app? Below are my code snippet which i am using:
in .xml file:
<children>
<Group>
<ChannelStore id="store" fakeServer="false" command="getCatalog" />
</children>
</Group>
in .brs file:
sub init()
m.store.ObserveField("catalog", "onGetCatalog")
End sub
function onGetCatalog() as void
print m.store.catalog
count = m.store.catalog.GetChildCount()
for i = 0 to count - 1
item = m.store.catalog.getChild(i)
print "item is "; item
end for
end function