productDetailsReceived

Typemessage
DictionaryLCS
LibraryLiveCode Script
Syntax
productDetailsReceived <pProductID>, <pDetails>
Summary

Sent by the store when the request for specific product details is successful.

Introduced6.7
OSios, android
Platformsmobile
Parameters
NameTypeDescription
pProductID

The identifier of the product for which the request for details was made.

pDetails

An array that contains information about the specified product. The keys of this array may differ, depending on the store.

Example
on productDetailsReceived pProdID, pDetails
   answer "Querying details for product : " && pProdID
   if pDetails is empty then
      answer "pDetails is empty"
   else
      combine pDetails using return
      answer pDetails
   end if   
end productDetailsReceived
RelatedCommand: mobileStoreRestorePurchases, mobileStoreDisablePurchaseUpdates, mobileStoreEnablePurchaseUpdates, mobileStoreRequestProductDetails, mobileStoreMakePurchase, mobileStoreSetProductType, mobileStoreConsumePurchase, mobileStoreConfirmPurchase, mobileStoreVerifyPurchase
Function: mobileStoreProductProperty, mobileStorePurchasedProducts, mobileStorePurchaseError, mobileStoreCanMakePurchase
Message: purchaseStateUpdate, productRequestError
Description

Use the productDetailsReceived message to get details for a specific product.

The message productDetailsReceived is sent in response to mobileStoreRequestProductDetails command, when the request is successful. The details are returned in the second parameter, pDetails, which is an array with the following keys:

For android stores (Google/Amazon/Samsung), the keys are :

  • pProductID : identifier of the requested product
  • price : price of the requested product
  • description : description of the requested product
  • title : title of the requested product
  • itemType : type of the requested product
  • itemImageUrl : URL where the image of the requested product is stored
  • itemDownloadUrl : URL to download the requested product
  • subscriptionDurationUnit : subscription duration unit of the requested product
  • subscriptionDurationMultiplier : subscription duration multiplier of the requested product

For iOS store (Apple), the keys are :

  • price : price of the requested product
  • description : description of the requested product
  • title : title of the requested product
  • currency code : price currency code of the requested product
  • currency symbol : currency symbol of the requested product
  • unicode description : unicode description of the requested product
  • unicode title : unicode title of the requested product
  • unicode currency symbol : unicode currency symbol of the requested product