class Stripe::ErrorObject
@see stripe.com/docs/api/errors<br><br>Represents an error object as returned by the API.
def charge
def charge @values[:charge] end
def code
For some errors that could be handled programmatically, a short string
def code @values[:code] end
def decline_code
For card errors resulting from a card issuer decline, a short string
def decline_code @values[:decline_code] end
def doc_url
def doc_url @values[:doc_url] end
def message
A human-readable message providing more details about the error. For card
def message @values[:message] end
def param
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
The PaymentIntent object for errors returned on a request involving a
def payment_intent @values[:payment_intent] end
def payment_method
The PaymentMethod object for errors returned on a request involving a
def payment_method @values[:payment_method] end
def setup_intent
The SetupIntent object for errors returned on a request involving a
def setup_intent @values[:setup_intent] end
def source
def source @values[:source] end
def type
The type of error returned. One of `api_error`, `card_error`,
def type @values[:type] end