Class

SKMutablePayment

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

Declaration

@interface SKMutablePayment : SKPayment

Overview

A mutable payment object identifies a 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 app can safely change the contents of the mutable payment object.

Topics

Getting and Setting Attributes

productIdentifier

A string that identifies 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

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

Simulating Buy for Testing

simulatesAskToBuyInSandbox

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

Getting and Setting Discount Details

paymentDiscount

The details of the discount offer to apply to the payment.

Relationships

Inherits From

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.

SKPayment

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

SKPaymentDiscount

The signed discount applied to a payment.

SKPaymentQueue

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