Interface: PlandalfConfig
Defined in: packages/sdk/src/core/types.ts:55
Properties
apiBase?
optionalapiBase?:string
Defined in: packages/sdk/src/core/types.ts:56
autoScan?
optionalautoScan?:boolean
Defined in: packages/sdk/src/core/types.ts:66
cdnBase?
optionalcdnBase?:string
Defined in: packages/sdk/src/core/types.ts:57
continuity?
optionalcontinuity?:ContinuityScope
Defined in: packages/sdk/src/core/types.ts:71
Session continuity default. Off by default — every present() mints a new session. Per-call overrides live on FlowOpenOptions.
countdownBase?
optionalcountdownBase?:string
Defined in: packages/sdk/src/core/types.ts:58
debug?
optionaldebug?:boolean
Defined in: packages/sdk/src/core/types.ts:65
metadata?
optionalmetadata?:Record<string,MetadataValue>
Defined in: packages/sdk/src/core/types.ts:99
Stripe-bound pass-through. Forwarded to the Stripe Customer's metadata
field at customer-creation time so external affiliate trackers (Tolt,
Rewardful, FirstPromoter, …) can attribute via Customer.metadata.<key>
when email matching is unreliable. Function values are resolved lazily
at session-create time so () => window.tolt_referral reads the
up-to-date value even if the tracker's async script populated it after
page load. Per-call values on FlowOpenOptions override matching keys here.
See specs/sdk-checkout-config.md.
properties?
optionalproperties?:Record<string,unknown>
Defined in: packages/sdk/src/core/types.ts:87
Form-field prefill defaults. Merchant-supplied; rendered into checkout
inputs (e.g. first_name, email, custom collected fields). Per-call
values on FlowOpenOptions override matching keys here.
See specs/sdk-checkout-config.md.
ref?
optionalref?:string|string[]
Defined in: packages/sdk/src/core/types.ts:79
Merchant alias(es) for the visitor-identifier URL param. When the host
page emits the visitor's identity under a non-canonical name (Divi forms
locked to email, etc.), list those names here. Tried after pf_ref
and ref. Set via data-config-ref="…" on the SDK . See specs/sdk-url-config.md.
user?
optionaluser?:string
Defined in: packages/sdk/src/core/types.ts:64
Customer JWT (HS256, signed with one of the org's API keys, kid header set to the
ApiKey id). Set globally at init OR via plandalf.setUser(jwt). Per-call override
lives on FlowOpenOptions.user. The value is the raw JWT string, not a user object.