STPSetupIntentLastSetupError

public class STPSetupIntentLastSetupError : NSObject, STPAPIResponseDecodable

A value for code indicating the provided payment method failed authentication./// The error encountered in the previous SetupIntent confirmation.

  • For some errors that could be handled programmatically, a short string indicating the error code reported.

    Declaration

    Swift

    @objc
    public private(set) var code: String? { get }
  • For card (STPSetupIntentLastSetupErrorTypeCard) errors resulting from a card issuer decline, a short string indicating the card issuer’s reason for the decline if they provide one.

    Declaration

    Swift

    @objc
    public private(set) var declineCode: String? { get }
  • A URL to more information about the error code reported.

    Declaration

    Swift

    @objc
    public private(set) var docURL: String? { get }
  • A human-readable message providing more details about the error. For card (STPSetupIntentLastSetupErrorTypeCard) errors, these messages can be shown to your users.

    Declaration

    Swift

    @objc
    public private(set) var message: String? { get }
  • If the error is parameter-specific, the parameter related to the error. For example, you can use this to display a message near the correct form field.

    Declaration

    Swift

    @objc
    public private(set) var param: String? { get }
  • The PaymentMethod object for errors returned on a request involving a PaymentMethod.

    Declaration

    Swift

    @objc
    public private(set) var paymentMethod: STPPaymentMethod? { get }
  • The type of error.

    Declaration

    Swift

    @objc
    public private(set) var type: STPSetupIntentLastSetupErrorType { get }
  • Declaration

    Swift

    @objc
    public private(set) var allResponseFields: [AnyHashable : Any] { get }

STPAPIResponseDecodable

code string values

  • A possible value for the error property. The provided payment method has failed authentication. Provide a new payment method to attempt to fulfill this SetupIntent again.

    Declaration

    Swift

    public static let CodeAuthenticationFailure: String