function reserveSession
reserveSession(sessionId: string): Promise<ReserveSessionResult>

Reserve a payment session for processing (first phase of two-phase lock). Missing and stale unresolved rows are claimed atomically. Existing fresh, finalized, and failed rows are returned without changing them.

Parameters

sessionId: string

Return Type

Usage

import { reserveSession } from "doc.ts";