SKMutablePayment Class Reference
| Inherits from | |
| Conforms to | |
| Framework | /System/Library/Frameworks/StoreKit.framework |
| Availability | Available in OS X v10.7 and later. |
| Companion guide | |
| Declared in | SKPayment.h |
Overview
The SKMutablePayment class defines a request to the Apple App Store to process payment for additional functionality offered by your application. A payment encapsulates a string that identifies a particular product and the quantity of that item the user would like to purchase.
When a mutable payment is added to the payment queue, the payment queue copies the contents into an immutable request before queueing the request. Your application can safely change the contents of the mutable payment object.
Tasks
Getting and Setting Attributes
-
productIdentifierproperty -
quantityproperty -
requestDataproperty
Properties
productIdentifier
A string that identifies a product that can be purchased from within your application.
Discussion
The product identifier is a string previously agreed on between your application and the Apple App Store.
Availability
- Available in OS X v10.7 and later.
Declared In
SKPayment.hquantity
The number of items the user wants to purchase.
Discussion
The quantity property must be greater than 0.
Availability
- Available in OS X v10.7 and later.
Declared In
SKPayment.hrequestData
Reserved for future use. (read-only)
Discussion
The default value is nil. If requestData is not nil, your payment will be rejected by the Apple App Store.
Availability
- Available in OS X v10.7 and later.
Declared In
SKPayment.h© 2011 Apple Inc. All Rights Reserved. (Last updated: 2011-06-06)