Class

SKProductDiscount

The details of a discount offer for a subscription product.

Declaration

@interface SKProductDiscount : NSObject

Overview

You set up discount offers in App Store Connect, as described in App Store Connect Developer Help. SKProductDiscount contains the offer information as retrieved from the App Store.

Topics

Identifying the Discount

identifier

A string used to uniquely identify a discount offer for a product.

type

The type of discount offer.

SKProductDiscountType

Values representing the types of discount offers an app can present.

Getting Price and Payment Mode

price

The discount price of the product in the local currency.

priceLocale

The locale used to format the discount price of the product.

paymentMode

The payment mode for this product discount.

SKProductDiscountPaymentMode

Values representing the payment modes for a product discount.

Getting the Discount Duration

numberOfPeriods

An integer that indicates the number of periods the product discount is available.

subscriptionPeriod

An object that defines the period for the product discount.

Relationships

Inherits From

See Also

Introductory Offers

Implementing Introductory Offers in Your App

Offer introductory pricing for auto-renewable subscriptions to eligible users.

Testing Introductory Offers

Test your introductory pricing in a variety of user scenarios.