function toCheckoutResult
toCheckoutResult(
sessionId: string | undefined,
url:
string
| undefined
| null
,
label: LogCategory,
): CheckoutSessionResult

Convert a provider-specific checkout result to a CheckoutSessionResult. Returns null if session ID or URL is missing.

Parameters

sessionId: string | undefined
url:
string
| undefined
| null

Return Type

Usage

import { toCheckoutResult } from "doc.ts";