Packagecom.adobe.ane.productStore
Classpublic class ProductStore
InheritanceProductStore Inheritance flash.events.EventDispatcher

The ProductStore class lets you make purchases directly within the application.



Public Properties
 PropertyDefined By
  available : Boolean
[read-only] Indicates whether the user has denied access to purchases made directly within the application.
ProductStore
  isSupported : Boolean
[static] [read-only] Indicates whether the ProductStore class is supported on the underlying platform.
ProductStore
  pendingTransactions : Vector.<Transaction>
[read-only] Retrieve all transactions that are not marked as done
ProductStore
Public Methods
 MethodDefined By
  
Creates a new ProductStore instance.
ProductStore
  
finishTransaction(transactionId:String):void
Mark the transaction as done
ProductStore
  
makePurchaseTransaction(productId:String, quantity:int = 1):void
Purchases a product from the App Store
ProductStore
  
requestProductsDetails(productIds:Vector.<String>):void
Retrieves product details from the App Store.
ProductStore
  
Restore all transaction done for non-consumables products
ProductStore
Property Detail
availableproperty
available:Boolean  [read-only]

Indicates whether the user has denied access to purchases made directly within the application.


Implementation
    public function get available():Boolean
isSupportedproperty 
isSupported:Boolean  [read-only]

Indicates whether the ProductStore class is supported on the underlying platform. Currently, the feature is only supported in AIR applications on iOS device.


Implementation
    public static function get isSupported():Boolean
pendingTransactionsproperty 
pendingTransactions:Vector.<Transaction>  [read-only]

Retrieve all transactions that are not marked as done


Implementation
    public function get pendingTransactions():Vector.<Transaction>
Constructor Detail
ProductStore()Constructor
public function ProductStore()

Creates a new ProductStore instance.

Method Detail
finishTransaction()method
public function finishTransaction(transactionId:String):void

Mark the transaction as done

Parameters

transactionId:String

See also

com.adobe.ane.productStore.TransactionEvent.FINISH_TRANSACTION_SUCCESS
makePurchaseTransaction()method 
public function makePurchaseTransaction(productId:String, quantity:int = 1):void

Purchases a product from the App Store

Parameters

productId:String — Identifier of product for which payment is to be made.
 
quantity:int (default = 1) — Number of products to be purchased

See also

com.adobe.ane.productStore.TransactionEvent.PURCHASE_TRANSACTION_SUCCESS
com.adobe.ane.productStore.TransactionEvent.PURCHASE_TRANSACTION_FAIL
com.adobe.ane.productStore.TransactionEvent.PURCHASE_TRANSACTION_CANCEL
requestProductsDetails()method 
public function requestProductsDetails(productIds:Vector.<String>):void

Retrieves product details from the App Store.

Parameters

productIds:Vector.<String> — The Vector identifier of products for which detail information is requested

See also

com.adobe.ane.productStore.ProductEvent.PRODUCT_DETAILS_SUCCESS
com.adobe.ane.productStore.ProductEvent.PRODUCT_DETAILS_FAIL
restoreTransactions()method 
public function restoreTransactions():void

Restore all transaction done for non-consumables products

See also

com.adobe.ane.productStore.TransactionEvent.RESTORE_TRANSACTION_SUCCESS
com.adobe.ane.productStore.TransactionEvent.RESTORE_TRANSACTION_FAIL