Skip to end of metadata
Go to start of metadata

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:

FieldDescription
amountPrice of each purchased item.
codeProduct code. This corresponds to the product identifier that the developer assigns to the specific in-app purchase product.
purchaseIDContains the unique transaction ID of the transaction. Channels often use this value to entitle users to purchased subscriptions, etc. in their back end systems.
qtyQuantity of the specific product purchased.
totalTotal 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

-1HTTP timeout
-2Other timeout
-3Unknown error
-4Empty 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.

 

  • No labels