rsromeo
7 years agoChannel Surfer
Roku Web Service Push Notification Issue
I've set up Roku Web Services and my listener - works fine. I get the responses back BUT my db only stores the user's email address, username, pw and device info. The SALE push notification has these values:
I get all these values fine. My problem is the only possible attribute in this response I can link to in my db is customerId, however, I can't get the customerId from the user with BrightScript (or at least I don't know how). How can I map these transactions from these push notifications to my customer db so I know which account to update?? I wish we could get the customerId from roChannelStore or roDeviceInfo. It would be ideal if Roku allowed us to add our own custom parameter to their responses like Paypal and Amazon do. Anyone have any idea what I can do?
$responseKey = $data["responseKey"];
$custid = $data["customerId"];
$transactionType = $data["transactionType"];
$transactionId = $data["transactionId"];
$channelId = $data["channelId"];
$productCode = $data["productCode"];
$price = $data["price"];
$currency = $data["currency"];
$comments = $data["comments"];
$eventDate = $data["eventDate"];
I get all these values fine. My problem is the only possible attribute in this response I can link to in my db is customerId, however, I can't get the customerId from the user with BrightScript (or at least I don't know how). How can I map these transactions from these push notifications to my customer db so I know which account to update?? I wish we could get the customerId from roChannelStore or roDeviceInfo. It would be ideal if Roku allowed us to add our own custom parameter to their responses like Paypal and Amazon do. Anyone have any idea what I can do?