@qonto/embed-sdk / <internal> / CardParams

Interface: CardParams<T>

This is the common parameter format most of the card functions expect as their only parameter. It consists of a cardSettings object and an optional operationSettings object. The cardSettings object’s properties will be different depending on the function being called. Read the docs of each card related function to see the expected properties of the cardSettings object. The operationSettings object can include a proxyRequestFunction which allows the SDK to operate without needing an access token in the client. This is the recommended approach for production environments to avoid exposing sensitive tokens.

Type Parameters

T

T

Properties

cardSettings

cardSettings: T
An object with the parameters relevant to different card operations. Read the documentation of each function to see the expected properties of this object.

operationSettings?

optional operationSettings: OperationSettings
Optional operation settings that can include:
  • proxyRequestFunction: A function that allows the SDK to make requests through your server to avoid exposing sensitive tokens in the client. This is the recommended approach.
  • accessToken: An access token for direct API calls (not recommended for client-side code)
  • stagingToken: A token for testing in staging environments
  • Other operation-specific settings