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: 
lmarder
Level 7

In App Purchases

I am doing monthly and yearly subscription in app purchases. Right now I need to hardcode the my brightscript code the in app purchase id for each when I query the store catalogue.

Is there a way to query the store catalogue for the Purchase Type? I see it in the table for the "Manage In-Channel Products," but the xml in the csfake does not include it.

Also, is there documentation on the types of attributes that you can pull out of the live In-Channel Products?

Thanks!
0 Kudos
1 Reply
lmarder
Level 7

Re: In App Purchases

I wanted to follow up with this question in case any one stumbles onto it and is looking for the same thing Smiley Very Happy

You can look at the productType attribute to determine if the in-app product is a subscription. Monthly subscription has productType = "MonthlySub", Yearly subscriptions has productType = "YearlySub"

So you can do something like this ...


if item.productType = "MonthlySub" OR item.productType = "YearlySub"
print "CONGRATS, YOU ARE SUBSCRIBED"
endif
0 Kudos