NodeOpenCheckoutOptions
Native openCheckout() options.
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?: SignInMethodForces the sign-in method if a sign-in is needed (overrides signInMethod).
Type: SignInMethod
timeout#
timeout?: numberSeconds to wait for a new contribution, counted from when polling starts (sign-in uses signInTimeout). Default 600.
Inherited from OpenCheckoutOptions.timeout.
signal#
signal?: AbortSignalCancels sign-in or waiting; openCheckout() then resolves { status: "unknown" }.
Inherited from OpenCheckoutOptions.signal.
pollInterval#
pollInterval?: numberSeconds between polls; overrides the checkoutPollInterval option.
Inherited from OpenCheckoutOptions.pollInterval.
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