<doc>
	<legacy_id></legacy_id>
	<name>mobileStoreConfirmPurchase</name>
	<type>command</type>

	<syntax>
		<example>mobileStoreConfirmPurchase <i>productID</i></example>
	</syntax>

	<synonyms>
	</synonyms>

	<summary>Inform the store that the purchase identifier <i>productID</i> was successfully delivered.</summary>

	<examples>
<example><p>on purchaseStateUpdate pPurchaseID, pProductID, pState</p><p>   switch pState</p><p>      case "paymentReceived"</p><p>         offerPurchasedItem pProductID</p><p>         mobileStoreConfirmPurchase pProductID</p><p>         mobileStoreDisablePurchaseUpdates</p><p>         </p><p>      case "error"</p><p>         ...</p><p>         mobileStoreDisablePurchaseUpdates</p><p>         </p><p>      case "invalidSKU"</p><p>         ...</p><p>         mobileStoreDisablePurchaseUpdates</p><p>         </p><p>      case "alreadyEntitled"</p><p>         ...</p><p>         mobileStoreDisablePurchaseUpdates</p><p>         </p><p>      case "restored"</p><p>         offerPurchasedItem pProductID     </p><p>         mobileStoreConfirmPurchase pProductID</p><p>         mobileStoreDisablePurchaseUpdates</p><p>         </p><p>      case "cancelled"</p><p>         ...</p><p>         mobileStoreDisablePurchaseUpdates</p><p>                </p><p>   end switch</p><p>end purchaseStateUpdate</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>
	</platforms>

	<classes>
	</classes>

	<security>
	</security>


	<classification>
	</classification>

	<references>
		<function tag="mobileStoreCanMakePurchase">mobileStoreCanMakePurchase function</function>
		<function tag="mobileStorePurchaseError">mobileStorePurchaseError function</function>
		<function tag="mobileStoreProductProperty">mobileStoreProductProperty function</function>
		<function tag="mobileStorePurchasedProducts">mobileStorePurchasedProducts function</function>
		<command tag="mobileStoreEnablePurchaseUpdates">mobileStoreEnablePurchaseUpdates command</command>
		<command tag="mobileStoreDisablePurchaseUpdates">mobileStoreDisablePurchaseUpdates command</command>
		<command tag="mobileStoreRestorePurchases">mobileStoreRestorePurchases command</command>
		<command tag="mobileStoreConsumePurchase">mobileStoreConsumePurchase 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>mobileStoreConfirmPurchase</b> command to notify the store that a purchase was successfully delivered.</overview>

		<parameters>
  <parameter>
    <name>productID</name>
    <description>Is the identifier of the product for which you want to inform the store that it was successfully delivered.</description>
  </parameter>		</parameters>

	<value></value>
	<comments>The command <b>mobileStoreConfirmPurchase</b> is used to notify the store that a purchase was successfully delivered. This informs the store to stop sending In that way, the store stops sending <message tag="purchaseStateUpdate">purchaseStateUpdate</message> messages.<p></p><p></p><p></p><note> This function is used for iOS, but it is a good practice to use it for any store. This command should only be called in the "paymentReceived" or "restored" state, see example. If you call <command tag="mobileStoreDisablePurchaseUpdates">mobileStoreDisablePurchaseUpdates</command> without first calling mobileStoreConfirmPurchase, then you receive a <message tag="purchaseStateUpdate">purchaseStateUpdate</message> message with state "paymentReceived" or "restored", the next time you call <command tag="mobileStoreEnablePurchaseUpdates">mobileStoreEnablePurchaseUpdates</command>.</note><p>&#9;</p></comments>
	</description>
</doc>