Your Digital Media Has Never Looked So Good

 
Jeev_1989
Topic Author
Posts: 1
Joined: Tue Sep 05, 2017 3:10 am

transaction-service.svc/validate-transaction API returns cancelled as true after succesful rental purchase

Tue Sep 05, 2017 3:23 am

There is a One-Time Purchase, Consumable quantity product set for renting an a video asset.
On purchasing the product from the app, the purchase is successful and I get the transactionId from the Roku store back.
On trying to validate the transaction using the "transaction-service.svc/validate-transaction"  API, I get a response with cancelled param as true. Not sure why this is seen even after a successful purchase of the product.

Response of "transaction-service.svc/validate-transaction" API :

<result xmlns="http://api.roku.com/transaction" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
    <errorCode i:nil="true" xmlns=""/>
    <errorDetails i:nil="true" xmlns=""/>
    <errorMessage xmlns=""/>
    <status xmlns="">Success</status>
    <amount>14.99</amount>
    <cancelled>true</cancelled>
    <channelId>85803</channelId>
    <channelName> (censored) </channelName>
    <couponCode i:nil="true"/>
    <currency>usd</currency>
    <expirationDate i:nil="true"/>
    <originalPurchaseDate>2017-09-05T09:26:51</originalPurchaseDate>
    <partnerReferenceId i:nil="true"/>
    <productId>com.(censored).roku.stdrental</productId>
    <productName>Standard Rental</productName>
    <purchaseDate>2017-09-05T09:26:51</purchaseDate>
    <quantity>1</quantity>
    <rokuCustomerId> (censored) </rokuCustomerId>
    <tax>0.0000</tax>
    <total>0.0000</total>
    <transactionId>BF9B5DE6-DD74-4997-BDAE-A7E5009BB14B</transactionId>
</result>


Can anyone let me know why the Cancelled param is returning true ? 

Who is online

Users browsing this forum: No registered users and 3 guests