Astrada TypeScript SDK
    Preparing search index...

    Interface FailureReason

    Normalized, customer-facing reason a card verification failed. Present only when the verification state is failed. category, description and retryable are always present; issuerMessage and acsReferences appear only when the issuer returned them (typically on a frictionless decline; when the issuer renders its own challenge UI no per-attempt message is available).

    FailureReason

    interface FailureReason {
        acsReferences?: FailureReasonAcsReferences;
        adviceCode?: string;
        category: FailureReasonCategoryEnum;
        code?: string;
        description: string;
        issuerMessage?: string;
        providerMessage?: string;
        retryable: boolean;
    }
    Index

    FailureReason

    adviceCode?: string

    The issuer's advice code on authorization declines, verbatim from the payment provider. Documented values: try_again_later, do_not_try_again, confirm_card_data; values the provider introduces later pass through unchanged. Absent when the issuer gave no advice (e.g. 3-D Secure authentication failures).

    FailureReason

    Stable, provider-agnostic failure category an integrator can branch on without enumerating raw issuer codes.

    FailureReason

    code?: string

    Raw provider reason code (e.g. a 3DS transStatusReason or a Stripe decline_code), surfaced for support escalation.

    FailureReason

    description: string

    Human-readable explanation of the failure, safe to relay to the cardholder.

    FailureReason

    issuerMessage?: string

    The issuer's own cardholder-facing message, when provided (frictionless declines only).

    FailureReason

    providerMessage?: string

    The payment provider's cardholder-safe message for the specific failure code (e.g. "Your card does not support this type of purchase."). Finer-grained than the category-level description; absent when the provider supplied none.

    FailureReason

    retryable: boolean

    Whether the cardholder can retry now and plausibly succeed.

    FailureReason