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

	<syntax>
		<example>mobileStoreSetProductType <i>productID, productType</i></example>
	</syntax>

	<synonyms>
	</synonyms>

	<summary>Set the type of an in-app purchase.</summary>

	<examples>
<example><p>mobileStoreSetProductType "com.runrev.sampleapp.consumable" , "inapp"</p><p></p></example>
<example><p>on buyConsumable</p><p>   mobileStoreEnablePurchaseUpdates</p><p>   mobileStoreSetProductType "com.runrev.sampleapp.consumable", "inapp"</p><p>   mobileStoreMakePurchase "com.runrev.sampleapp.consumable", "1", "This belongs to me"</p><p>end buyConsumable</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="mobileStorePurchaseError">mobileStorePurchaseError 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="mobileStoreConsumePurchase">mobileStoreConsumePurchase command</command>
		<command tag="mobileStoreMakePurchase">mobileStoreMakePurchase command</command>
		<command tag="mobileStoreVerifyPurchase">mobileStoreVerifyPurchase command</command>
		<command tag="mobileStoreRequestProductDetails">mobileStoreRequestProductDetails 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>mobileStoreSetProductType</b> command to set the type of an in-app purchase item.</overview>

		<parameters>
  <parameter>
    <name>productID</name>
    <description>Is the identifier of the requested item.</description>
  </parameter>
  <parameter>
    <name>productType</name>
    <description>Is the type of the requested item.</description>
  </parameter>		</parameters>

	<value></value>
	<comments>The command <b>mobileStoreSetProductType</b> is used to set the type of an in-app purchase item.<p></p><p>The <i>productID</i> is the identifier of the in-app purchase you created in the vendor's App Store for which you wish to set the type.</p><p>The <i>productType</i> is the type of the in-app purchase item. This can either be <i>inapp </i>for consumable and non-consumable items, or <i>subs </i>for subscription items. </p><p></p><p></p><p></p><note> This command is actually necessary when interacting with Google Play Store. However, we suggest that you use it for every store. Failure to specify the item type will result in your purchase requests not being processed. </note><p>&#9;</p></comments>
	</description>
</doc>