Class

SKPayment

The SKPayment 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 those items the user would like to purchase.

Topics

Creating Instances

init(product: SKProduct)

Returns a new payment for the specified product.

Getting Attributes

var productIdentifier: String

A string used to identify a product that can be purchased from within your application.

var quantity: Int

The number of items the user wants to purchase.

var requestData: Data?

Reserved for future use.

var applicationUsername: String?

An opaque identifier for the user’s account on your system.

var simulatesAskToBuyInSandbox: Bool

A Boolean value that produces an "ask to buy" flow for this payment in the sandbox.