sebastienc
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2016
12:30 PM
SceneGraph ChannelStore order cancel bug
Is there anyway to know if a purchase was canceled by the user when they either click "back" or navigate back from the pin pad entry dialog when initiating an order?
If the user clicks "back" or navigates back from the pin pad dialog I would expect an orderStatus with status = 2, but the orderStatus is never set and there doesn't appear to be any other property to observe for this case. This looks to be a bug with the component?
m.channelStore = createObject("roSGNode", "ChannelStore")
m.channelStore.order = order
m.channelStore.observeField("orderStatus", "onChannelStoreOrderStatusChange")
m.channelStore.command = "doOrder"
If the user clicks "back" or navigates back from the pin pad dialog I would expect an orderStatus with status = 2, but the orderStatus is never set and there doesn't appear to be any other property to observe for this case. This looks to be a bug with the component?
Ensemble Systems - www.ensemble.com
3 REPLIES 3
EnTerr
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2016
03:47 PM
Re: SceneGraph ChannelStore order cancel bug
Sounds like a bug. Just to be sure, if order is not canceled with Back or wrong PIN - it goes through for a test user and your observer is invoked?
(I myself have not used the SG version but tested extensively the RO version, cue https://forums.roku.com/viewtopic.php?f=34&t=95592 )
(I myself have not used the SG version but tested extensively the RO version, cue https://forums.roku.com/viewtopic.php?f=34&t=95592 )
sebastienc
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2016
04:36 PM
Re: SceneGraph ChannelStore order cancel bug
Yep, if the order is not canceled then the observer is invoked as expected.
Ensemble Systems - www.ensemble.com
EnTerr
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2016
02:16 PM
Re: SceneGraph ChannelStore order cancel bug
"sebastienc" wrote:
Yep, if the order is not canceled then the observer is invoked as expected.
Then it's a bug, all right!
Apologies for doubting you but it was hard to imagine the Co would release a component so under-baked that it fails basic flow^. For the RTFM is quite clear promising "If the command fails, the field will be set to a ContentNode node with fields reflecting the completion status of the command."
I suggest you email "developer at roku.com" about it, possibly with link to this thread. While they do monitor the forum, there is no guarantee as to "when". Use roChannelStore if you can, its quirks are known by now and from my experience, ultimately it is usable.
(^) The world's aghast: how come there is no QA on the Roku API? No way somebody tested that and "missed" it