The acquiring configuration for payment account.
"Enables integrators to dynamically specify the acquiring configuration at runtime.
Identify the Payment Account with either paymentAccountId, or paymentAcquiringAccountId and paymentAccountReference. If you pass both, the SDK uses paymentAccountId.
Each call replaces the whole acquiring configuration. The SDK clears fields you leave out; it does not keep them from the configuration passed at initialization or in an earlier call."
await klarna.Config.setAcquiringConfig({
paymentAccountId: "payment-account-123",
});
Up to 20 enablement codes to use for subsequent operations.
"Enables integrators to change the enablement codes for the SDK instance at runtime. The codes replace those set at initialization and apply to every presentation, placement and payment that doesn't set its own. An empty array clears them.
Call this when a campaign starts after the SDK has loaded."
The token to resume the session.
"Sets a Klarna Network Session token to resume a previously established session.
Use this when the customer navigates between pages (e.g. from cart to checkout)
and you need to restore the SDK session without requiring the customer to
re-authenticate. The token is typically obtained from your server after the
initial payment flow or from the onComplete callback."
The partner account ID to use for subsequent operations.
"Enables integrators to dynamically specify the Partner's account ID at runtime. This field is only used when the integrator is an Acquiring Partner or has a complex partner account setup. For direct integration or partner integration, this field can be omitted.
Call this before initiating a payment when the partner account differs from the one used during SDK initialization."
The SDK token to resume a session.
"Enables integrators to dynamically specify an SDK token that can resume a session.
Migration: Replace calls to setSdkToken with {@docs-portal-link Config.setKlarnaNetworkSessionToken}.
The token value is the same — only the method name has changed."
// Deprecated — migrate to setKlarnaNetworkSessionToken
await klarna.Config.setSdkToken("eyJhbGciOi...");
// New equivalent
await klarna.Config.setKlarnaNetworkSessionToken("eyJhbGciOi...");
Config package. Runtime configuration for integration metadata and session.
Package Interface