Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Current »

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
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.
totalTotal purchase amount (including taxes) in the local currency.
qtyQuantity of the specific product purchased.
amountPrice of each purchased item.
codeProduct code. This corresponds to the product identifier that the developer assigns to the specific in-app purchase product.

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