Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
rockstar1
Level 7

In App Purchase in Roku

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
0 Kudos
4 Replies
EnTerr
Level 8

Re: In App Purchase in Roku

That is a bu...feature of Roku's ChannelStore api - you get made-up stuff in the app if side-loaded (the way we normally do debug/testing). See also viewtopic.php?f=34&t=95551

To test with the real catalog, you'll have to "publish" as a private channel and you'll "magically" get the real deal. That's unfinished design, per my gut feeling - never "got to it" to doing it right
0 Kudos
harshvikrams
Level 7

Re: In App Purchase in Roku

has anyone found any solution, because i am still facing the same issue. I have published the private channel as well with few of my in app products, but still i am getting those 3 default products only.
0 Kudos
abhishek
Level 7

Re: In App Purchase in Roku

"harshvikrams" wrote:
has anyone found any solution, because i am still facing the same issue. I have published the private channel as well with few of my in app products, but still i am getting those 3 default products only.

I am also facing the same issue. Have you found the solution?
0 Kudos
VikR0001
Level 7

Re: In App Purchase in Roku

I am facing the same issue as well.
0 Kudos