mobileStorePurchaseError

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
mobileStorePurchaseError (purchaseID)
Summary

Get more detailed information about errors in the purchase request.

Introduced6.7
OSios, android
Platformsmobile
Example
on purchaseStateUpdate pPurchaseID, pProductID, pState
 switch pState
  case "paymentReceived" 
   ...   
  case "error"
   answer "Error occurred during purchase handling:" \
         && mobilePurchaseError(pPurchaseID)
   mobileStoreDisablePurchaseUpdates

  case "invalidSKU"
   ...
  case "alreadyEntitled"
   ...
  case "restored"
   ...
  case "cancelled"
   ...    
 end switch
end purchaseStateUpdate
RelatedCommand: mobileStoreRestorePurchases, mobileStoreDisablePurchaseUpdates, mobileStoreEnablePurchaseUpdates, mobileStoreRequestProductDetails, mobileStoreMakePurchase, mobileStoreSetProductType, mobileStoreConsumePurchase, mobileStoreConfirmPurchase, mobileStoreVerifyPurchase
Function: mobileStoreCanMakePurchase, mobileStorePurchasedProducts, mobileStoreProductProperty
Message: purchaseStateUpdate, productRequestError, productDetailsReceived
Description

Use the mobileStorePurchaseError function to get more detailed information about errors in the purchase request.

The function mobileStorePurchaseError is used to get more detailed information about errors in the purchase request.

Note: This function should be called in purchaseStateUpdate message when pState = "error".