Retrieves, from the store, information about the "In-App" products associated with the application.
arrIdentifier is array of strings
IF InAndroidMode() THEN
arrIdentifier = ["product1", "product2", "product3", "product4", "unknown product"]
arrIdentifier = ["ProductID1", "ProductID2", "ProductID3", ...
"ProductID4", "ProductID5", "unknown product"]
IF inAppListProductInfo(arrIdentifier, ListProductInfo) THEN
ToastDisplay("Asks for the list of products sent.")
Error("ERROR: " + ErrorInfo)
// ListProductInfo procedure
PROCEDURE ListProductInfo(bSuccess is boolean, ...
arrProducts is array of inAppProduct)
IF not bSuccess THEN
Error("Error: " + ErrorInfo())
FOR i = 1 _TO_ arrProducts..Occurrence
arrProducts[i]..Caption, arrProducts[i]..Description, ...
// Copy into the array global to the window
garrProduct <= arrProducts
<Result> = inAppListProductInfo(<Identifiers of Products> , <Procedure Name>)
- True if the request for retrieving product information was performed,
- False otherwise. To find out the error details, use ErrorInfo.
<Identifiers of Products>: Array of character strings
Identifiers of products to use. These identifiers are the ones defined when creating the products:
- in iTunes Connect.
- in the Google Play developer console.
You cannot ask to retrieve information about more than 20 products at a time. A fatal error occurs if more than 20 identifiers are specified.
Note: If an identifier does not correspond to an existing product, it is ignored.
<Procedure Name>: Character string (with or without quotes)
Name of the WLanguage procedure ("callback" procedure) run when receiving information about the products. This procedure has the following format:
PROCEDURE <Procedure Name>(<Success> is boolean,
<Product Information> is array of inAppProduct)
- <Success> is boolean:
- True if information about the products was retrieved,
- False otherwise. For more details about the error, use ErrorInfo before any other call to a WLanguage function (that would reinitialize the error).
- <Product information> is an array of inAppProduct variables containing information about each one of the existing products whose identifier was specified. If the identifier does not correspond to an existing product, it is ignored.
If <Success> = False, the array will be empty.
Component : wp240device.dll