STPPaymentIntentLastPaymentError
public class STPPaymentIntentLastPaymentError : NSObject
extension STPPaymentIntentLastPaymentError: STPAPIResponseDecodable
A value for code
indicating the provided payment method failed authentication./// The payment error encountered in the previous PaymentIntent confirmation.
-
A value for
code
indicating the provided payment method failed authentication.Declaration
Swift
@objc public static let ErrorCodeAuthenticationFailure: String
-
For some errors that could be handled programmatically, a short string indicating the error code reported.
Declaration
Swift
@objc public let code: String?
-
For card (
STPPaymentIntentLastPaymentErrorType.card
) 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 let declineCode: String?
-
A URL to more information about the error code reported.
Declaration
Swift
@objc public let docURL: String?
-
A human-readable message providing more details about the error. For card (
STPPaymentIntentLastPaymentErrorType.card
) errors, these messages can be shown to your users.Declaration
Swift
@objc public let message: String?
-
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 let param: String?
-
The PaymentMethod object for errors returned on a request involving a PaymentMethod.
Declaration
Swift
@objc public let paymentMethod: STPPaymentMethod?
-
The type of error.
Declaration
Swift
@objc public let type: STPPaymentIntentLastPaymentErrorType
-
Declaration
Swift
@objc public class func decodedObject(fromAPIResponse response: [AnyHashable : Any]?) -> `Self`?