Greetings,
On the developer website, Add an in-channel product, I see “One-Time Purchase” as an option under “Purchase Type”
However the SDK docs imply that one time purchase is not an option:
https://sdkdocs.roku.com/display/sdkdoc … Purchasing
Anyone know about these?
Glancing through the documentation I didn’t see anywhere that it states that a One-Time Purchase of a consumable product isn’t an option, but I do use them in one of my channels. Users are able to purchase the same product again and again.
-JT
Thanks, I’m glad it works, but the docs don’t mention it at all!
How do you know if the transaction succeeded? Is there a way to validate a consumable was purchased?
I’m not sure what you’re asking. Within the channel/app, you just get whether or not the purchase succeeded from roChannelStore like any other purchase. I can get a history of transactions from https://developer.roku.com/transactions, but to be honest I don’t really keep track of whether or not a user purchased a one-time consumable since the user can purchase the same thing over and over again.
-JT
How can we get to know how many times a user has purchased the consumable product?
@surendra019 , the transaction report you can get from the developer dashboard gives the user_id with each transaction. You’d have to analyze the data yourself and to go back to the beginning of time would require all the reports. You can also get the same information from the push notifications if you’ve saved them all. If there’s another way, I’m not aware of it.
If you’re asking how to do it from within an app, that’s a different matter. I believe you just use GetAllPurchases.
Yes, the “One-Time Purchase” option is available when adding in-channel products in the Roku Developer Dashboard. However, it’s important to note that as of now, the SDK documentation does not support this purchase type. According to Roku’s official guidelines, only subscription-based products are supported for in-channel purchases. Therefore, while the option exists in the dashboard, it may not function as expected within the SDK environment.
@jameswilliams24 , huh? I’ve been using One-Time-Purchase/consumable products for years.