Accrue.CardError exception (accrue v0.3.1)

Copy Markdown View Source

Raised when the processor rejects a card (declined, expired, insufficient funds, etc.). Mirrors Stripe's card-error shape 1:1.

⚠️ processor_error may contain raw processor payload and MUST NOT be logged verbatim — treat it as sensitive and scrub before logging.

Summary

Types

t()

@type t() :: %Accrue.CardError{
  __exception__: true,
  code: term(),
  decline_code: term(),
  http_status: term(),
  message: term(),
  param: term(),
  processor_error: term(),
  request_id: term()
}