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

    Interface ExpressCallback

    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 ExpressCallback {
        amount: string;
        catalogued?: boolean;
        conversationId?: string;
        meaning?: string;
        paymentReference?: string;
        requestId: string;
        resultCode: string;
        resultDesc: string;
        resultType?: string;
        retriable?: boolean;
        status?: string;
        success: boolean;
        terminal?: boolean;
        transactionId?: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    amount: string
    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.

    paymentReference?: string
    requestId: string
    resultCode: string
    resultDesc: string
    resultType?: string
    retriable?: boolean
    status?: string
    success: boolean
    terminal?: boolean
    transactionId?: string