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

	<syntax>
		<example>mobileStoreConsumePurchase <i>productID</i></example>
	</syntax>

	<synonyms>
	</synonyms>

	<summary>Consume a purchased item.</summary>

	<examples>
<example>mobileStoreConsumePurchase "com.runrev.sampleapp.consumable" </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="mobileStorePurchaseError">mobileStorePurchaseError 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="mobileStoreRestorePurchases">mobileStoreRestorePurchases command</command>
		<command tag="mobileStoreConfirmPurchase">mobileStoreConfirmPurchase 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>mobileStoreConsumePurchase</b> function to consume a purchased item.</overview>

		<parameters>
  <parameter>
    <name>productID</name>
    <description>Is the identifier of the requested product.</description>
  </parameter>		</parameters>

	<value></value>
	<comments>The command <b>mobileStoreConsumePurchase</b> is used to consume a purchased item. This removes the item from the user's inventory.<p></p><p></p><note> This command is only used when interacting with Google Play Store in-app purchasing API. This is due to a Google API restriction that ensures a consumable product is consumed before another instance is purchased. <i>Consume</i> means that the purchase is removed from the user's inventory of purchased items, allowing the user buy that product again.</note><p></p><p></p><note> This command must only be called on consumable products. If you call mobileStoreConsumePurchase on a non-consumable product, then you no longer own that product.</note></comments>
	</description>
</doc>