function processBooking
processBooking(
contact: ContactInfo,
quantity: number,
date: string | null,
baseUrl: string,
customUnitPrice?: number,
): Promise<BookingResult>

Process a single-event booking.

Determines whether payment is needed, then either:

  • Creates a checkout session (paid) or
  • Atomically creates an attendee (free)

Parameters

contact: ContactInfo
quantity: number
date: string | null
baseUrl: string
optional
customUnitPrice: number

Return Type

Promise<BookingResult>

Usage

import { processBooking } from "doc.ts";