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: 
developer_uj24
Binge Watcher

Roku Pay TVOD Error: Object reference not set to an instance of an object

I'm implementing Roku Pay TVOD, I've implemented everything correct requestPartnerOrder and confirmPartnerOrder but I'm getting this error "Object reference not set to an instance of an object." Please help me to resolve isn't I'm not getting Product from In-Channel Product or something else?

0 Kudos
4 REPLIES 4
developer_uj24
Binge Watcher

Roku Pay For TVOD show "No Transaction found" for TEST USER

I've to Implement TVOD,  I'm using RequestPartnerOrder with ConfirmPartnerOrder successfully getting "purchase id" but when I go to TEST USER to check that if there is any transaction succeed? I got "No transaction found"  and no actual transaction succeeded when I remove my self from test user.  The following is my RequestPartnerOrder code.

 

m.orderRequest = CreateObject("roSGNode", "ContentNode")
    m.orderRequest.title = m.top.movieTitle
    m.orderRequest.priceDisplay = m.top.costVideo.tostr()
    m.orderRequest.price = m.top.costVideo.tostr()
    m.orderRequest.addField("code", "string", false)
    m.orderRequest.code = "Product Name"'
    m.store.requestPartnerOrder = m.orderRequest
   
    m.store.command = "requestPartnerOrder"

And the following is "confirmPartnerOrder" code.


m.confirmRequest = CreateObject("roSGNode", "ContentNode")
    m.confirmRequest.title = m.orderRequest.title
    m.confirmRequest.priceDisplay = m.orderRequest.priceDisplay
   
    m.confirmRequest.price = Mid(m.store.requestPartnerOrderStatus.total, 2)
    m.confirmRequest.orderID = m.store.requestPartnerOrderStatus.orderID
    m.confirmRequest.addField("code", "string", false)
    m.confirmRequest.code = m.orderRequest.code
    m.store.confirmPartnerOrder = m.confirmRequest
    m.store.command = "confirmPartnerOrder"

 

Please Let me know where I'm doing mistake. 

Also my another question is, 

Contact your partner manager to get the requestPartnerOrder and confirmPartnerOrder commands enabled for your channel.


Who is my Partenr Manager? Is it Roku Success Partner or my client ? If client how do he enable?

0 Kudos
developer_uj24
Binge Watcher

Implementing Roku Pay, can't get subscriptions from getCatalog

Hello,

I'm working on implementation on Roku pay from last two weeks but there is no luck. Now I thought I've to go simple. I've taken simple example of Subscription from Roku samples. Followed this video lecture carefully. 

1. Created Test Channel

2. Put Payment Information for tax etc.

3. Enable the channel for billing testing 

billing test.PNG

4. Added a test user

5. Created In channel products
inChannel.PNG

6. Enable channel for SVOD and TVOD from monetization 

monetization.PNG

So I did everything, that means when I use following command I've to get Subscriptions that I've put in my In-Channel's Product, but I can't get. Please help me how do I get subscriptions from In-Channel Products. 

m.global.channelStore.command = "getCatalog"
Note: I've mentioned the source code from git at start as well video lesson.
0 Kudos
RokuJonathanD
Community Moderator
Community Moderator

Re: Roku Pay For TVOD show "No Transaction found" for TEST USER

Hi @developer_uj24,

0 Kudos
RokuJonathanD
Community Moderator
Community Moderator

Re: Implementing Roku Pay, can't get subscriptions from getCatalog

Hi @developer_uj24,

Can you please provide the code you are using to verify whether the purchases Content node has any in-channel product child nodes in it?

0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.