Zamok Kiosk API
    Preparing search index...
    • Tracks cash-payment transaction workflow state and cancellation state.

      Parameters

      • previousState: CashPaymentTransactionState = ...
      • action: ReducerAction

      Returns CashPaymentTransactionState

      State is { activeTransactionId?, latestTransaction, cancelling, cancelSucceeded, cancelError? }. Create/status responses update the active transaction. Cancellation start/success/failure actions update the flags and optional error. Cash-state clearing and sessionReset restore the defaults.