StoreAccessState

public enum StoreAccessState

Represents the current state of Store Access object. This is an extended version of SKPaymentTransactionState.

  • Unknown (initial) state

    Declaration

    Swift

    case unknown
  • Store access is requesting products from the store.

    Declaration

    Swift

    case requestingProducts
  • Store access has received products from the store.

    Declaration

    Swift

    case receivedProducts
  • A request for products failed.

    Declaration

    Swift

    case requestForProductsFailed(error: Error)

    Parameters

    error

    The error that caused the request to fail.

  • Store access attempting to purchase product.

    Declaration

    Swift

    case purchaseAttempt(productIdentifier: String)

    Parameters

    productIdentifier

    Identifier of a product being purchased.

  • Making payments is not allowed for the user

    Declaration

    Swift

    case cannotMakePayments
  • Store access is purchasing product.

    Declaration

    Swift

    case purchasing
  • Store access has purchased product.

    Declaration

    Swift

    case purchased
  • Store access is restoring previous purchases.

    Declaration

    Swift

    case restoringPurchases
  • Store access has restored previous purchases.

    Declaration

    Swift

    case restored
  • Purchase of a product failed.

    Declaration

    Swift

    case purchaseFailed(skError: SKError?)

    Parameters

    skError

    An object describing the error that occurred while purchasing product.