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

DoRecovery API always returns recoveryStatus 1 (Enhanced Subscription Recovery)

Hi,

We are working to integrate "Enhanced Subscription Recovery" feature into Channels, but it looks that ChannelStore DoRecovery API doesn't return the correct information from Channel Store.

getAllPurchases API returns us products that are in Grace (inDunning: "true", status: "Valid") or On Hold (inDunning: "true", status: "Invalid"), but DoRecovery always returns "recoveryStatus: 1". Also Recovery Dialog doesn't show up.

Am I missing something? Shouldn't we get "recoveryStatus: 2" for these cases?

https://developer.roku.com/en-gb/docs/developer-program/roku-pay/subscription-recovery/subscription-...

I am using SceneGraph (SDK 2) example for calling DoRecovery https://developer.roku.com/en-gb/docs/developer-program/roku-pay/subscription-recovery/subscription-...

 

Thanks in advance!

 

0 Kudos
4 REPLIES 4
ionatan
Roku Guru

Re: DoRecovery API always returns recoveryStatus 1 (Enhanced Subscription Recovery)

I have an update regarding this.

The renewal message dialog is displayed if we publish the Channel as beta test Channel, but not when the Channel is installed as a zip for development.

We already enabled Billing Testing https://developer.roku.com/en-gb/docs/developer-program/roku-pay/testing/billing-testing.md

Did anyone figured out how "Enhanced Subscription Recovery" feature can be tested with a zip Channel installed through Development Application Installer?

0 Kudos
renojim
Community Streaming Expert

Re: DoRecovery API always returns recoveryStatus 1 (Enhanced Subscription Recovery)

@ionatan, I'm late to the party, but I'm just trying to implement this now.  I'm guessing you never found a way to test DoRecovery by just sideloading and not having to publish?  I see the same thing you were seeing and I've wasted a day before I found this.

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
ionatan
Roku Guru

Re: DoRecovery API always returns recoveryStatus 1 (Enhanced Subscription Recovery)

@renojim The only solution that I've found was to create a Beta / Test app and to run tests with it. Unfortunately with this approah is not possible to use debug console.

0 Kudos
renojim
Community Streaming Expert

Re: DoRecovery API always returns recoveryStatus 1 (Enhanced Subscription Recovery)

Thanks!  I'm glad I found your post before I wasted too much time trying to figure out what I was doing wrong.  What a pain!  It's exacerbated by having to log into the Developer Dashboard every 15 minutes.  🙄

Years ago I created my own debug print using roDatagramSocket in BS and netcat (which Windows insists on flagging as a virus) to listen on a PC.  It really came in handy while trying to get through this.

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
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.