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

Retrieving Product Information

Loading In-App Product Identifiers

Load the unique identifiers for your in-app products in order to retrieve product information from the App Store.

Fetching Product Information from the App Store

Retrieve up-to-date information about the products for sale in your app to display to the user.

SKProductsRequest

An object that can retrieve localized information from the App Store about a specified list of products.

SKProduct

Information about a product previously registered in App Store Connect.

SKProductsResponse

An App Store response to a request for information about a list of products.

SKProductSubscriptionPeriod

An object containing the subscription period duration information.