Hi,
I'm trying to integrate with the Validate Transaction Web Service, but the documentation (
https://sdkdocs.roku.com/display/sdkdoc ... ransaction) seems to be completely outdated and/or wrong.
Here's what the docs say I should get (in XML format):
<result>
<transactionId>{transactionid}</transactionId>
<purchaseDate>2012-07-22T14:59:50</purchaseDate>
<channelName>123Video</channelName>
<productName>123Video Monthly Subscription</productName>
<productId>NETMONTH</productId>
<amount>9.99</amount>
<currency>USD</currency>
<isEntitled>true</isEntitled>
<quantity>1</quantity>
<rokuCustomerId>abcdefghijklmnop</rokuCustomerId>
<expirationDate>2012-08-22T14:59:50</expirationDate>
<originalPurchaseDate>2010-08-22T14:59:50</originalPurchaseDate>
<status>Success</status>
<errorMessage>error_message</errorMessage>
</result>
Here's what I actually get (in JSON format, anonymized):
{
"errorCode": null,
"errorDetails": null,
"errorMessage": "",
"status": 0,
"amount": 0.0000,
"cancelled": false,
"channelId": 123456,
"channelName": "My Company SSO",
"couponCode": null,
"currency": "usd",
"expirationDate": "/Date(1546663531000+0000)/",
"isEntitled": true,
"originalPurchaseDate": "/Date(1544071531000+0000)/",
"partnerReferenceId": null,
"productId": "com.my.company.production.subscription",
"productName": "My Company ",
"purchaseDate": "/Date(1544071531000+0000)/",
"quantity": 1,
"rokuCustomerId": "79b7450044bb5759820db6b108cf7756",
"tax": 0.0000,
"total": 0.0000,
"transactionId": "5fa8d33c-c7b9-4b15-a51a-a9ae004e6b71"
}
As you can see they're very different. Different fields, formats, etc.
Is there ANY new documentation available for Web Service API that I can rely on? Any hints at all as to what to expect for the various fields?
thanks, Rickard