NodeOpenCheckoutOptions

Native openCheckout() options.

On this page

Native openCheckout() options.

import type { NodeOpenCheckoutOptions } from "@sponsorkit/sdk/node";

interface NodeOpenCheckoutOptions extends OpenCheckoutOptions { … }

Interface, exported from @sponsorkit/sdk/node.

Extends OpenCheckoutOptions.

Properties#

method#

method?: SignInMethod

Forces the sign-in method if a sign-in is needed (overrides signInMethod).

Type: SignInMethod

timeout#

timeout?: number

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

Inherited from OpenCheckoutOptions.timeout.

signal#

signal?: AbortSignal

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

Inherited from OpenCheckoutOptions.signal.

pollInterval#

pollInterval?: number

Seconds between polls; overrides the checkoutPollInterval option.

Inherited from OpenCheckoutOptions.pollInterval.

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