OpenCheckoutOptions
Options for openCheckout().
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?: numberSeconds to wait for a new contribution, counted from when polling starts (sign-in uses signInTimeout). Default 600.
signal#
signal?: AbortSignalCancels sign-in or waiting; openCheckout() then resolves { status: "unknown" }.
pollInterval#
pollInterval?: numberSeconds between polls; overrides the checkoutPollInterval option.
provider#
provider?: ProviderPreferred provider. The checkout page never silently switches provider.
Inherited from CheckoutOptions.provider.
Type: Provider
amount#
amount?: numberAmount in minor units (cents).
Inherited from CheckoutOptions.amount.
currency#
currency?: stringISO 4217 currency, e.g. "USD".
Inherited from CheckoutOptions.currency.
frequency#
frequency?: FrequencyInherited from CheckoutOptions.frequency.
Type: Frequency