function markSessionFailed
markSessionFailed(
sessionId: string,
): Promise<void>

Record a handled terminal failure on a still-unresolved session. A later redirect/webhook for the same session reads this back via parseSessionFailure and returns the same outcome, so refunds and validation never run twice. Guarded on UNRESOLVED_RESERVATION, so it never clobbers a finalized success and never overwrites an already-recorded failure (the first outcome wins); a no-op if the row was pruned away.

Parameters

sessionId: string

Return Type

Promise<void>

Usage

import { markSessionFailed } from "doc.ts";