OpenCheckoutOptions

Options for openCheckout().

On this page

Options for openCheckout().

import type { OpenCheckoutOptions } from "@sponsorkit/sdk";

interface OpenCheckoutOptions extends CheckoutOptions { … }

Interface, exported from @sponsorkit/sdk, @sponsorkit/sdk/node.

Extends CheckoutOptions.

Properties#

timeout#

timeout?: number

Seconds to wait for a new contribution, counted from when polling starts (sign-in uses signInTimeout). Default 600.

signal#

signal?: AbortSignal

Cancels sign-in or waiting; openCheckout() then resolves { status: "unknown" }.

pollInterval#

pollInterval?: number

Seconds between polls; overrides the checkoutPollInterval option.

provider#

provider?: Provider

Preferred provider. The checkout page never silently switches provider.

Inherited from CheckoutOptions.provider.

Type: Provider

amount#

amount?: number

Amount in minor units (cents).

Inherited from CheckoutOptions.amount.

currency#

currency?: string

ISO 4217 currency, e.g. "USD".

Inherited from CheckoutOptions.currency.

frequency#

frequency?: Frequency

Inherited from CheckoutOptions.frequency.

Type: Frequency