Mac Developer Library

Developer

StoreKit Framework Reference StoreKit Constants Reference

Options
Deployment Target:

On This Page
Language:

StoreKit Constants Reference

This document describes the constants defined in the Store Kit framework and not described in a document for an individual class.

Constants

  • This constant defines the Store Kit framework error domain.

    Declaration

    Swift

    let SKErrorDomain: NSString!

    Objective-C

    NSString * const SKErrorDomain;

    Constants

    • SKErrorDomain

      SKErrorDomain

      Indicates an error occurred in Store Kit.

      Available in OS X v10.7 and later.

    Import Statement

  • Error codes for the Store Kit error domain.

    Declaration

    Swift

    var SKErrorUnknown: Int { get } var SKErrorClientInvalid: Int { get } var SKErrorPaymentCancelled: Int { get } var SKErrorPaymentInvalid: Int { get } var SKErrorPaymentNotAllowed: Int { get }

    Objective-C

    enum { SKErrorUnknown, SKErrorClientInvalid, SKErrorPaymentCancelled, SKErrorPaymentInvalid, SKErrorPaymentNotAllowed, };

    Constants

    • SKErrorUnknown

      SKErrorUnknown

      Indicates that an unknown or unexpected error occurred.

      Available in OS X v10.7 and later.

    • SKErrorClientInvalid

      SKErrorClientInvalid

      Indicates that the client is not allowed to perform the attempted action.

      Available in OS X v10.7 and later.

    • SKErrorPaymentCancelled

      SKErrorPaymentCancelled

      Indicates that the user cancelled a payment request.

      Available in OS X v10.7 and later.

    • SKErrorPaymentInvalid

      SKErrorPaymentInvalid

      Indicates that one of the payment parameters was not recognized by the Apple App Store.

      Available in OS X v10.7 and later.

    • SKErrorPaymentNotAllowed

      SKErrorPaymentNotAllowed

      Indicates that the user is not allowed to authorize payments.

      Available in OS X v10.7 and later.

    Import Statement