PayFanout API reference
    Preparing search index...

    Interface PaymentOperationTelemetry

    One record per adapter call, emitted to PaymentServiceOptions.telemetry. Metadata-only (no amounts, no ids, no raw payloads) so the hook can feed metrics/tracing without any PII handling burden.

    interface PaymentOperationTelemetry {
        durationMs: number;
        errorCode?: UnifiedErrorCode;
        ok: boolean;
        operation:
            | "createCustomer"
            | "listSavedPaymentMethods"
            | "deleteSavedPaymentMethod"
            | "chargeSavedPaymentMethod"
            | "savePaymentMethod"
            | "createPaymentSession"
            | "updatePaymentSession"
            | "completePayment"
            | "retrievePayment"
            | "capturePayment"
            | "cancelPayment"
            | "refundPayment"
            | "retrieveRefund"
            | "verifyPaymentMethod"
            | "fetchEvents"
            | "listPayments"
            | "listRefunds";
        pspName: string;
    }
    Index
    durationMs: number
    errorCode?: UnifiedErrorCode

    Unified code when the call rejected.

    ok: boolean
    operation:
        | "createCustomer"
        | "listSavedPaymentMethods"
        | "deleteSavedPaymentMethod"
        | "chargeSavedPaymentMethod"
        | "savePaymentMethod"
        | "createPaymentSession"
        | "updatePaymentSession"
        | "completePayment"
        | "retrievePayment"
        | "capturePayment"
        | "cancelPayment"
        | "refundPayment"
        | "retrieveRefund"
        | "verifyPaymentMethod"
        | "fetchEvents"
        | "listPayments"
        | "listRefunds"
    pspName: string