@checkout-kit/core / CompletionSpec
Type Alias: CompletionSpec
ts
type CompletionSpec =
| {
via: "return_url";
}
| {
correlationField?: string;
origin: string;
type: string;
via: "post_message";
}
| {
intervalMs: number;
timeoutMs: number;
via: "poll";
}
| {
via: "sdk_callback";
};How the runner will learn that the action finished.
Union Members
Type Literal
ts
{
via: "return_url";
}Type Literal
ts
{
correlationField?: string;
origin: string;
type: string;
via: "post_message";
}correlationField?
ts
optional correlationField?: string;Field in the message that carries the action id. Defaults to actionId; banks name it challengeId, MD and so on, and the check still has to happen.
origin
ts
origin: string;type
ts
type: string;via
ts
via: "post_message";Type Literal
ts
{
intervalMs: number;
timeoutMs: number;
via: "poll";
}Type Literal
ts
{
via: "sdk_callback";
}