Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
renojim
Community Streaming Expert

Re: Billing usage was specified during channel publishing but was not found in BrightScript code

Did you read the thread?!  The solution has already been posted.

Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos
sandeepthakur
Binge Watcher

Re: Billing usage was specified during channel publishing but was not found in BrightScript code

Yes I read. Please, can you simply suggest what code changes, I have to do and where to fix this error. 

0 Kudos
ibliskavka
Channel Surfer

Re: Billing usage was specified during channel publishing but was not found in BrightScript code

You must be new to development. One cant simply suggest what code change must be made without seeing your code. 🙂

Please study this sample. This implementation passes the static analysis tool and you can model your solution based on that.

https://github.com/rokudev/scenegraph-master-sample/tree/master/Subscriptions

0 Kudos
mramim
Streaming Star

Re: Billing usage was specified during channel publishing but was not found in BrightScript code

Weird I'm using this exact way to create and handle channelstore but I'm still getting this error. I'm implementing a TVOD channel so my logic is from tvod-sample-master from here
https://github.com/rokudev/samples/tree/master/roku%20pay

I also have authentication built into the channel when user tries to play a paid content. I don't understand what could cause this issue

 

 

0 Kudos
ibliskavka
Channel Surfer

Re: Billing usage was specified during channel publishing but was not found in BrightScript code

Its been a couple of months, so the exact details are sketchy.

I was following this sample to create the in app purchase (without login):
https://github.com/rokudev/samples/blob/master/roku%20pay/SimpleChannelStore.zip

After completing the app, I could not pass static analysis until I made the channel store node a global rather than a member variable.

m.global.AddField("channelStore", "node", false)
m.global.channelStore = CreateObject("roSGNode", "ChannelStore")
0 Kudos
anrisi
Newbie

Re: Billing usage was specified during channel publishing but was not found in BrightScript code

Does anyone have example for Screensaver (RunScreenSaver())? I have tried to create and handle channelstore as suggested here but it's not working for screensaver case. Any ideas?

 

0 Kudos
necrotek
Roku Guru

Re: Billing usage was specified during channel publishing but was not found in BrightScript code

If you intend to handle in channel billing for a screensaver you will need to add a "RunScreenSaverSettings" entry point.  This will available on the system screensaver chooser. Otherwise if you want the channel to be a one time purchase, just set it in the dev portal monitization option.

 

https://developer.roku.com/en-us/docs/developer-program/media-playback/screensavers.md

0 Kudos