type alias CheckoutSessionResult

Result of creating a checkout session: success carries the session id and checkout URL, a user-facing error carries error, and null means the provider is not configured. Unexpected failures throw.

Definition

{ sessionId: string; checkoutUrl: string; }
| { error: string; }
| null

Usage

import { type CheckoutSessionResult } from "doc.ts";