Product Class
Item Index
Methods
Properties
Methods
purchase
(
Void
-
[params]
Begins purchase process for provided product
Parameters:
-
[params]
Object optionalAn object with the following properties:
-
[applicationPayload]
String optionalAn opaque identifier for the user’s account on your system. This is used to help the store detect irregular activity. For example, in a game, it would be unusual for dozens of different iTunes Store accounts making purchases on behalf of the same in-game character. The recommended implementation is to use a one-way hash of the user’s account name to calculate the value for this property. Optional, defaults null.
-
[quantity=1]
Number optionalNumber of products to purchase. Optional, defaults to 1.
-
Returns:
Void:
Properties
description
String
read-only
Product description.
priceAsNumber
Number
read-only
Product price as number.
priceAsString
String
read-only
Product price as string, formatted for correct locale.
priceLocale
String
read-only
The locale used to format the price of the product.
SKU
String
read-only
The product identifier.
title
String
read-only
Product title.