Class

SKPayment

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

Declaration

@interface SKPayment : NSObject

Overview

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

Topics

Creating Payments

+ paymentWithProduct:

Returns a new payment for the specified product.

+ paymentWithProductIdentifier:

Returns a new payment with the specified product identifier.

Deprecated

Getting Payment Details

productIdentifier

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

quantity

The number of items the user wants to purchase.

requestData

Reserved for future use.

applicationUsername

A string that uniquely identifies a user on your own system or service.

Simulating Purchases for Testing

simulatesAskToBuyInSandbox

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

Getting Discount Details

SKPaymentDiscount

The signed discount applied to a payment.

Relationships

Inherits From

See Also

Purchases

Requesting a Payment from the App Store

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

Processing a Transaction

Register a transaction queue observer to get and handle transaction updates from the App Store.

SKMutablePayment

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

SKPaymentTransaction

An object in the payment queue.