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

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 1
lmarder
Visitor

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 😄

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