IAPPurchaseResult

public struct IAPPurchaseResult

The result returned in the purchase() callback.

  • The result state.

    Declaration

    Swift

    public internal(set) var state: IAPPurchaseResultState { get }
  • If the state is failed, the result can return an IAPError. The error occurred during the processing of the purchase by the library.

    Declaration

    Swift

    public internal(set) var iapError: IAPError? { get }
  • If the state is failed, the result can return an SKError. The error occurred during the processing of the purchase by the App Store.

    Declaration

    Swift

    public internal(set) var skError: SKError? { get }
  • If there is an error, return the localized description.

    See

    See also: IAPError and SKError.

    Declaration

    Swift

    public var localizedDescription: String? { get }