STPPaymentIntentLastPaymentErrorType

@objc
public enum STPPaymentIntentLastPaymentErrorType : Int

The type of the error represented by STPPaymentIntentLastPaymentError. Some STPPaymentIntentLastPaymentError properties are only populated for certain error types.

  • An unknown error type.

    Declaration

    Swift

    case unknown
  • An error connecting to Stripe’s API.

    Declaration

    Swift

    @objc(STPPaymentIntentLastPaymentErrorTypeAPIConnection)
    case apiConnection
  • api

    An error with the Stripe API.

    Declaration

    Swift

    @objc(STPPaymentIntentLastPaymentErrorTypeAPI)
    case api
  • A failure to authenticate your customer.

    Declaration

    Swift

    case authentication
  • Card errors are the most common type of error you should expect to handle. They result when the user enters a card that can’t be charged for some reason. Check the declineCode property for the decline code. The message property contains a message you can show to your users.

    Declaration

    Swift

    case card
  • Keys for idempotent requests can only be used with the same parameters they were first used with.

    Declaration

    Swift

    case idempotency
  • Invalid request errors. Typically, this is because your request has invalid parameters.

    Declaration

    Swift

    case invalidRequest
  • Too many requests hit the API too quickly.

    Declaration

    Swift

    case rateLimit