class Stripe::ErrorObject

@see stripe.com/docs/api/errors<br><br>Represents an error object as returned by the API.

def charge

For card errors, the ID of the failed charge.
def charge
  @values[:charge]
end

def code

indicating the error code reported.
For some errors that could be handled programmatically, a short string
def code
  @values[:code]
end

def decline_code

indicating the card issuer's reason for the decline if they provide one.
For card errors resulting from a card issuer decline, a short string
def decline_code
  @values[:decline_code]
end

def doc_url

A URL to more information about the error code reported.
def doc_url
  @values[:doc_url]
end

def message

errors, these messages can be shown to your users.
A human-readable message providing more details about the error. For card
def message
  @values[:message]
end

def param

field.
For example, you can use this to display a message near the correct form
If the error is parameter-specific, the parameter related to the error.
def param
  @values[:param]
end

def payment_intent

PaymentIntent.
The PaymentIntent object for errors returned on a request involving a
def payment_intent
  @values[:payment_intent]
end

def payment_method

PaymentMethod.
The PaymentMethod object for errors returned on a request involving a
def payment_method
  @values[:payment_method]
end

def setup_intent

SetupIntent.
The SetupIntent object for errors returned on a request involving a
def setup_intent
  @values[:setup_intent]
end

def source

The source object for errors returned on a request involving a source.
def source
  @values[:source]
end

def type

`idempotency_error`, or `invalid_request_error`.
The type of error returned. One of `api_error`, `card_error`,
def type
  @values[:type]
end