I think that I understand correctly the process for validating a new subscription, but I have questions on how to validate the renewal of the subscription (Step #7).
Process for validating an initial subscription:
- Get Transaction ID from Roku device (once subscription is complete)
- Pass Transaction ID from Roku device to my backend server
- Backend server communicates to Roku server at following URL
http://apipub.roku.com/listen/transacti … ansaction/ + devToken + / + transactionID;
-
If a valid subscription, the ExpirationDate is returned. Let’s assume that it is a one month subscription.
-
Store expiration date in database - associated with User.
-
Return expiration date to Roku client
-
If current Roku device time is greater than expiration date stored, then check if subscription was auto-renewed.
My question is how do I go about implementing Step #7? Should I store / persist the transactionID on the backend server, and then have the Roku client make a request to the backend server, to revalidate the transaction (and get a new expiration data)?
http://apipub.roku.com/listen/transacti … ansaction/ + devToken + / + transactionID;
Thanks,
Kurt
