Your Digital Media Has Never Looked So Good

 
sebastienc
Topic Author
Posts: 3
Joined: Thu Aug 11, 2016 12:21 pm

SceneGraph ChannelStore order cancel bug

Thu Aug 11, 2016 12:30 pm

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?

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
 
EnTerr
** Valued Community Member **
Posts: 3834
Joined: Sun Jan 02, 2011 2:41 am

Re: SceneGraph ChannelStore order cancel bug

Thu Aug 11, 2016 3:47 pm

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 )
 
sebastienc
Topic Author
Posts: 3
Joined: Thu Aug 11, 2016 12:21 pm

Re: SceneGraph ChannelStore order cancel bug

Thu Aug 11, 2016 4:36 pm

Yep, if the order is not canceled then the observer is invoked as expected.
Ensemble Systems - www.ensemble.com
 
EnTerr
** Valued Community Member **
Posts: 3834
Joined: Sun Jan 02, 2011 2:41 am

Re: SceneGraph ChannelStore order cancel bug

Fri Aug 12, 2016 2:16 pm

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

Who is online

Users browsing this forum: No registered users and 5 guests