@bates-solutions/stripe API Reference - v2.2.1
    Preparing search index...

    Class StripeApiError

    API-level errors from Stripe

    Hierarchy (View Summary)

    Index

    Normalized error code. Each provider defines its own union.

    details?: unknown

    The raw error body or other context, if any.

    param?: string

    Request parameter the error relates to, if any

    requestId?: string

    Stripe request ID for support/debugging

    statusCode?: number

    HTTP status of the response that caused the error, if any.

    type?: string

    The error type Stripe sent (e.g. invalid_request_error, or an OAuth error such as invalid_grant). Use code for the classification.

    • Makes value instanceof PaymentsError true for an error from any copy of this package, not only this one. It looks for a brand that every copy puts on PaymentsError.prototype, so the prototype itself is not counted as an instance. On a subclass, such as SquareError, it is the usual prototype-chain check.

      It returns a plain boolean rather than a type predicate, so TypeScript keeps narrowing instanceof SquareError to SquareError.

      Parameters

      • value: unknown

      Returns boolean