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,
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,
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
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.
Can you post a link to the page in the SDK you are referring to?
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
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
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
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
Thanks Mark,
Do you know what the structure of the xml’s is (i.e. required tags)?
Aaron
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.
Sorry, when I first wrote the response I was under the impression that the channel store XML format was already documented. I see that’s not true. I’ll see if I can get some info.
–Mark
“RokuMarkn” wrote:
Sorry, when I first wrote the response I was under the impression that the channel store XML format was already documented. I see that’s not true. I’ll see if I can get some info.–Mark
Thanks, Mark. It looks like all of the documentation for the roChannelStore needs to be updated. A few of the issues I’ve run across:
Also, FakeServer() aside, is there any way to create products that can be associated with the dev channel, so we can actually debug while testing?
Just a friendly bump to see if there’s any new news here. I’d really like to be able to test (and debug) the channel store functionality before I go through the whole content approval process. From what I understand, I can’t even publish products for testing without getting approval first…
“TheEndless” wrote:
Just a friendly bump to see if there’s any new news here. I’d really like to be able to test (and debug) the channel store functionality before I go through the whole content approval process. From what I understand, I can’t even publish products for testing without getting approval first…
Same here. We are trying to create a channel with monthly subscription. The inChannelPurchase example is not really usable and there is no clear documentation.
Thanks
I see there has been some activity on this thread since I started it several months back, but going back to my original question can someone please please provide examples of the xml files for the fakeserver method so I can finish testing my application. See below for the files I’m talking about.
Thanks,
Aaron
“RokuMarkn” wrote:
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.xmlIf 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
Did anyone ever figure out the format for these xml files?
Hi everyone. You might find this article on the Roku Developer Blog useful for answering many of your questions about using roChannelStore.
bump
The blog post isn’t really addressing the issue here. What I, and I’m sure many others, want to know is: what are the contents of the XML files in the csfake directory?
In particular, I am using an in-app update, which doesn’t match the catalog/order flow outlined in the blog post. What I need to know is what the GetUpdate.xml file should contain, so that I can test the update flow offline.
“azoff” wrote:
bumpThe blog post isn’t really addressing the issue here. What I, and I’m sure many others, want to know is: what are the contents of the XML files in the csfake directory?
In particular, I am using an in-app update, which doesn’t match the catalog/order flow outlined in the blog post. What I need to know is what the GetUpdate.xml file should contain, so that I can test the update flow offline.
The sample code linked in that blog post contains example XML files. While it doesn’t have a GetUpgrade.xml file, presumably, it’s pretty much identical to the GetPurchases.xml and/or GetCatalog.xml, since the SDK documentation indicates that they all return the same metadata. Have you tried using one of those as a starting point?
“TheEndless” wrote:
The sample code linked in that blog post contains example XML files. While it doesn’t have a GetUpgrade.xml file, presumably, it’s pretty much identical to the GetPurchases.xml and/or GetCatalog.xml, since the SDK documentation indicates that they all return the same metadata. Have you tried using one of those as a starting point?
In fact, I did
Thanks for responding so quickly.
However, when trying to get the roChannelStore.GetUpdate() method to work, I found that the best I could get was a successful response with no items in it. Try as I might (I tried products, orderItems, purchaseItems, and items), I couldn’t get the items roArray object to populate. Hence, I couldn’t verify the second half of the example listed in the roChannelStore documentation (http://sdkdocs.roku.com/pages/viewpage.action?pageId=3114131). So, ya, I kinda need to know the schema for the GetUpdate.xml file.
I imagine that the documentation for these files will eventually get up there; sounds like the Roku guys just have a little catch-up to do.