The roChannelStore sends an roChannelStoreEvent in response to a call to any of several Get* methods in ifChannelStore. The following predicates indicate its valid event types:
isRequestSucceeded() as Boolean
The previous Get request has completed successfully.
GetSourceIdentity() as Integer
Returns a unique number that can be matched with the value returned by ifChannelStore.GetIdentity() to determine which roChannelStore object this event came from.
GetResponse() as Object
Returns an roList of roAssociativeArray items for the previous Get* method invocation. The format of each roAssociativeArray item depends on which Get* method was invoked. See ifChannelStore for more details. In the case of a successfully completed ifChannelStore.DoOrder() initiated purchase transaction, the object returned by GetResponse() is an associative array containing the following information:
Field | Description |
---|---|
amount | Price of each purchased item. |
code | Product code. This corresponds to the product identifier that the developer assigns to the specific in-app purchase product. |
purchaseID | Contains the unique transaction ID of the transaction. Channels often use this value to entitle users to purchased subscriptions, etc. in their back end systems. |
qty | Quantity of the specific product purchased. |
total | Total purchase amount (including taxes) in the local currency. |
isRequestFailed() as Boolean
The previous Get request failed.
GetSourceIdentity() as Integer
Returns a unique number that can be matched with the value returned by ifChannelStore.GetIdentity() to determine which roChannelStore object this event came from.
GetStatus() as Integer
Returns an Integer code that indicates the reason for failure:
2 | Interrupted |
-1 | HTTP timeout |
-2 | Other timeout |
-3 | Unknown error |
-4 | Empty list |
GetStatusMessage() as String
Returns a human-readable string describing the status of the completed request.
isRequestInterrupted() as Boolean
The previous Get request did not complete.
GetSourceIdentity() as Integer
Returns a unique number that can be matched with the value returned by ifChannelStore.GetIdentity() to determine which roChannelStore object this event came from.