lmarder
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2015
08:14 AM
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!
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!
1 REPLY 1
lmarder
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2015
10:45 AM
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 ...
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