@kepas/daraja-js
    Preparing search index...

    Interface StatusResult

    Optional, additive fields parsers layer onto a result when the code is catalogued. resultCode/resultDesc/success are never replaced — these only ADD a human meaning + retry/terminal hints.

    interface StatusResult {
        catalogued?: boolean;
        conversationId: string;
        meaning?: string;
        originatorConversationId: string;
        params: Record<string, unknown>;
        receipt?: string;
        resultCode: number;
        resultDesc: string;
        retriable?: boolean;
        success: boolean;
        terminal?: boolean;
        transactionId: string;
        transactionStatus?: string;
    }

    Hierarchy (View Summary)

    Index
    catalogued?: boolean

    True when the (scope, resultCode) pair is in the proven catalog.

    conversationId: string
    meaning?: string

    Catalogued, actionable meaning (or Safaricom's text); undefined if unproven.

    originatorConversationId: string
    params: Record<string, unknown>
    receipt?: string

    The ReceiptNo result parameter — the M-Pesa receipt of the queried transaction.

    resultCode: number
    resultDesc: string
    retriable?: boolean
    success: boolean
    terminal?: boolean
    transactionId: string
    transactionStatus?: string

    The TransactionStatus result parameter (e.g. Completed), verbatim.