@bates-solutions/squareup API Reference - v3.2.0
    Preparing search index...

    Interface DeclineReason

    What a card decline means for charging the same card again.

    interface DeclineReason {
        code: string;
        retryable: boolean;
    }
    Index
    code: string

    Square's error code, for example GENERIC_DECLINE or INSUFFICIENT_FUNDS.

    retryable: boolean

    Whether charging the same card again later, without the buyer doing anything, can succeed. When false, ask the buyer for another card (or to fix this one) instead of retrying: repeated attempts on a hard decline can get the merchant flagged by the card networks.

    A retry of a declined charge is a new payment attempt, so give it a new idempotency key: Square answers a reused key with the original decline.