<doc>
	<legacy_id></legacy_id>
	<name>mobileStorePurchaseError</name>
	<type>function</type>

	<syntax>
		<example>mobileStorePurchaseError <i>(purchaseID)</i></example>
	</syntax>

	<synonyms>
	</synonyms>

	<summary>Get more detailed information about errors in the purchase request.</summary>

	<examples>
<example><p>on purchaseStateUpdate pPurchaseID, pProductID, pState</p><p> switch pState</p><p>  case "paymentReceived" </p><p>   ...   </p><p>  case "error"</p><p>   answer "Error occured during purchase handling:" &amp;&amp; mobilePurchaseError(pPurchaseID)</p><p>   mobileStoreDisablePurchaseUpdates</p><p>         </p><p>  case "invalidSKU"</p><p>   ...</p><p>  case "alreadyEntitled"</p><p>   ...</p><p>  case "restored"</p><p>   ...</p><p>  case "cancelled"</p><p>   ...    </p><p> end switch</p><p>end purchaseStateUpdate</p><p></p></example>
	</examples>

	<history>
		<introduced version="6.7">Added.</introduced>
		<deprecated version=""></deprecated>
		<removed version=""></removed>
		
		<experimental version=""></experimental>
		<nonexperimental version=""></nonexperimental>
	</history>

	<objects>
	</objects>

	<platforms>
		<ios/>
		<android/>
	</platforms>

	<classes>
		<mobile/>
	</classes>

	<security>
	</security>


	<classification>
	</classification>

	<references>
		<function tag="mobileStoreCanMakePurchase">mobileStoreCanMakePurchase function</function>
		<function tag="mobileStorePurchasedProducts">mobileStorePurchasedProducts function</function>
		<function tag="mobileStoreProductProperty">mobileStoreProductProperty function</function>
		<command tag="mobileStoreEnablePurchaseUpdates">mobileStoreEnablePurchaseUpdates command</command>
		<command tag="mobileStoreDisablePurchaseUpdates">mobileStoreDisablePurchaseUpdates command</command>
		<command tag="mobileStoreConsumePurchase">mobileStoreConsumePurchase command</command>
		<command tag="mobileStoreConfirmPurchase">mobileStoreConfirmPurchase command</command>
		<command tag="mobileStoreRestorePurchases">mobileStoreRestorePurchases command</command>
		<command tag="mobileStoreSetProductType">mobileStoreSetProductType command</command>
		<command tag="mobileStoreRequestProductDetails">mobileStoreRequestProductDetails command</command>
		<command tag="mobileStoreMakePurchase">mobileStoreMakePurchase command</command>
		<command tag="mobileStoreVerifyPurchase">mobileStoreVerifyPurchase command</command>
		<message tag="purchaseStateUpdate">purchaseStateUpdate message</message>
		<message tag="productDetailsReceived">productDetailsReceived message</message>
		<message tag="productRequestError">productRequestError message</message>
	</references>

	<description>
	<overview>Use the <b>mobileStorePurchaseError</b> function to get more detailed information about errors in the purchase request.</overview>

		<parameters>
		</parameters>

	<value></value>
	<comments>The function <b>mobileStorePurchaseError</b> is used to get more detailed information about errors in the purchase request. <p></p><p></p><note> This function should be called in <message tag="purchaseStateUpdate">purchaseStateUpdate</message> message when pState = <i>"error"</i>.</note></comments>
	</description>
</doc>