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: 
joetesta
Roku Guru

Consumable Product?

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?
aspiring
0 Kudos
5 REPLIES 5
renojim
Community Streaming Expert

Re: Consumable Product?

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
Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos
joetesta
Roku Guru

Re: Consumable Product?

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?
aspiring
0 Kudos
renojim
Community Streaming Expert

Re: Consumable Product?

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
Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos
surendra019
Binge Watcher

Information about consumable product

How can we get to know how many times a user has purchased the consumable product?

0 Kudos
renojim
Community Streaming Expert

Re: Information about 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.

Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos
Community is Temporarily in Read-Only Mode!

We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. You will not be able to log in or post new comments or kudos during this time. Read more here.

Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 12 and you may notice reduced functionality. In the meantime, for additional assistance, visit our Support Site.

Thanks for your patience — we’re excited to share what’s next!