Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 

Roku In Channel Purchase Process

I have to implement roku billing service, i have linked my channel with the multiple products in my roku account, but i want to know that how the record will be maintained by roku for example if one customer has purchased the product then how roku will distinguish with other customers who have not yet purchase that particular product, i also want to know the working process of check order and place order in roku in channel purchase.
0 Kudos
4 Replies
adamkaz
Level 7

Re: Roku In Channel Purchase Process

You have to check which purchases the customer has made using GetPurchases: https://sdkdocs.roku.com/display/sdkdoc/ifChannelStore#ifChannelStore-GetPurchases()asVoid

This will return any products that have not yet expired.

You could also maintain a record of what they have purchased in your registry, but this will not work if the user switches devices, restores factory default, etc.

Perhaps the best flow would be to check for purchases in the registry, then check using GetPurchases().
0 Kudos
renojim
Level 8

Re: Roku In Channel Purchase Process

"adamkaz" wrote:
You have to check which purchases the customer has made using GetPurchases: https://sdkdocs.roku.com/display/sdkdoc/ifChannelStore#ifChannelStore-GetPurchases()asVoid

This will return any products that have not yet expired.

Is that documented somewhere? I couldn't find anything in the documentation that states subscriptions will stop being returned by GetPurchases() when they expire. It makes sense, but...

-JT
0 Kudos
adamkaz
Level 7

Re: Roku In Channel Purchase Process

I don't think I've seen it in the documentation, but it is my experience and I believe I have an email somewhere from Roku....

ah yes, from Roku:
"GetPurchases() only returns the currently active subscriptions not subscriptions that have been cancelled and expired."
0 Kudos
renojim
Level 8

Re: Roku In Channel Purchase Process

Thanks!

-JT
0 Kudos