Class

SKPayment

A request to the App Store to process payment for additional functionality offered by your app.

Declaration

class SKPayment : NSObject

Overview

A payment object identifies a product and the quantity of those items the user would like to purchase.

Topics

Creating Payments

init(product: SKProduct)

Returns a new payment for the specified product.

Getting Payment Details

var productIdentifier: String

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

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.

Simulating Buys for Testing

var simulatesAskToBuyInSandbox: Bool

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

See Also

Initiating a Purchase

Requesting a Payment from the App Store

Submit a payment request to the App Store when a user selects a product to buy.

class SKMutablePayment

A mutable request to the App Store to process payment for additional functionality offered by your app.

class SKPaymentDiscount

The signed discount applied to a payment.

class SKPaymentQueue

A queue of payment transactions to be processed by the App Store.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software