Skip to content

@checkout-kit/core / ActionRunner

Interface: ActionRunner<K> ​

Type Parameters ​

Type ParameterDefault type
K extends PaymentActionKindPaymentActionKind

Properties ​

PropertyModifierTypeDescription
kindreadonlyK-
surfacesreadonlyreadonly ActionSurface[]Surfaces this runner can render on. The registry keys on kind:surface.

Methods ​

run() ​

ts
run(action, ctx): Promise<ActionEvidence>;

Parameters ​

ParameterType
action| Extract<ActionBase & { fields?: Readonly<Record<string, string>>; kind: "redirect"; method: "GET" | "POST"; returnUrlField?: string; surface: "top" | "iframe" | "popup"; url: string; }, { kind: K; }> | Extract<ActionBase & { fields: readonly ("number" | "exp" | "cvc" | "holder")[]; kind: "collect_fields"; origin: string; surface: "inline"; theme?: Readonly<Record<string, string>>; url: string; }, { kind: K; }> | Extract<ActionBase & { integrity?: string; kind: "sdk_handoff"; params: Readonly<Record<string, unknown>>; scriptUrl?: string; sdk: string; surface: "none"; }, { kind: K; }> | Extract<ActionBase & { completion: { intervalMs: number; timeoutMs: number; via: "poll"; }; deeplink?: string; format: "qr" | "code" | "instructions"; imageUrl?: string; instructions?: string; kind: "display"; surface: "inline"; value: string; }, { kind: K; }> | Extract<ActionBase & { kind: "poll"; surface: "none"; }, { kind: K; }>
ctxRunnerContext

Returns ​

Promise<ActionEvidence>

Apache-2.0 · Headless engine, provider adapters and runnable examples.