I use a rule to call my CloudScript function after a player has bought an item. But I don't know how to get the orderId in CloudScript.
CloudScript:
handlers.StoreOrderId = function (args, context) { var psEvent = context.playStreamEvent; }
How can I get the receipt's orderId in CloudScript?