Roku Developer Program

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

roChannelStore

I'm looking for examples on how to setup the Fake Channel Store for developing. The SDK claims that the Fake Store is run out of configuration files. Does anyone know how to consturct these files and where they are stored?

Thanks,
0 Kudos
23 REPLIES 23\
RokuJoel
Roku Employee
Roku Employee

Re: roChannelStore

Maybe you are looking for this:

https://roku.box.com/s/951c579618219bfaa278

this is the example of in-channel purchasing.

The rest of the setup is done in https://owner.roku.com

- Joel
0 Kudos
acornils
Level 7

Re: roChannelStore

Sorry that is not what I'm after I have seen both those items already. What I want to know is how to setup the fake channel store mentioned in the SDK. The SDK referes to this being done in configuration files.
0 Kudos
RokuJoel
Roku Employee
Roku Employee

Re: roChannelStore

Can you post a link to the page in the SDK you are referring to?

- Joel
0 Kudos
TheEndless
Level 10

Re: roChannelStore

I'm interested in knowing how to get this working as well. The FakeServer() method is documented here, but doesn't give any details on the "configuration files" it refers to: http://sdkdocs.roku.com/pages/viewpage. ... leanenable
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos
RokuMarkn
Level 8

Re: roChannelStore

Hm, I've never used this feature (nor did I even know it existed until now), but looking at the source, it looks like it works this way. In the directory pkg:/csfake, you can have these xml files:

CheckOrder.xml
PlaceOrder.xml
GetCatalog.xml
GetPurchases.xml
GetUpgrade.xml
UpgradeChannel.xml

If you call roChannelStore.FakeServer(true), then the response to a channel store request will be the contents of the corresponding xml file. No transaction with the channel store actually takes place.

--Mark
0 Kudos
acornils
Level 7

Re: roChannelStore

Mark,

Where are you finding refrence to these xml's for the fakeserver. I have not seen them in any of the documentation or the sample application that I have. If you could provide links to the xmls or more details on there structure so I can create my own for testing that would be great.

Aaron
0 Kudos
RokuMarkn
Level 8

Re: roChannelStore

I don't think these things are documented yet. You can put anything you want in the xml files, but of course it's only useful if you make the files look like actual channel store responses. The idea is you can test different kinds of channel store responses (errors, etc) to make sure your code parses and handles them correctly.

--Mark
0 Kudos
acornils
Level 7

Re: roChannelStore

Thanks Mark,

Do you know what the structure of the xml's is (i.e. required tags)?

Aaron
0 Kudos
TheEndless
Level 10

Re: roChannelStore

*bump*
Any chance we could get an example of the XML for each of these files? Everything logical that I've tried has resulted in an "Order Response Garbled" error.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos