Skip to content

Overview

Orchestration is a module of a client-side JavaScript SDK that allows you to communicate with Mosaic, run journeys, and submit client input. Contact your Transmit representative to learn more about our orchestration capabilities.

Benefits

The SDK offers the following advantages:

  • Abstract and simplify the communication scheme
  • Validate that the client input response contains the expected client input
  • Keep state between the last server response and the next client input response
  • Allow passing the state between pages, for multi-page applications

Installation

Load the SDK:

npm install @transmitsecurity/platform-web-sdk@^2

Initialization

The main module interface is IdoSDK. To initialize, use the following code:

// Import Orchestration module
import { ido, initiliaze } from '@transmitsecurity/platform-web-sdk';

// Initialize SDK
// If SDK was loaded via script tag, use window.tsPlatform.initialize({ ... })
initialize({
  clientId: 'your-client-id',
  ido: {
    serverPath: 'https://api.transmitsecurity.io/ido' // Required: Set serverPath based on your region or custom domain
  }
});

Customizations:

NameTypeDescription
serverPathstring(Required) The Orchestration module should be configured to work with your region or custom domain by setting serverPath to:
- https://api.transmitsecurity.io/ido (for US)
- https://api.eu.transmitsecurity.io/ido (for EU)
- https://api.ca.transmitsecurity.io/ido (for Canada)
- https://api.au.transmitsecurity.io/ido (for Australia)
- https://api.sbx.transmitsecurity.io/ido (for sandbox)
- https://<your_custom_domain>/ido (for custom domain)
For the SDK modules to work properly together, the regions must match.
localestringLanguage code for the SDK UI.
applicationIdstringMosaic application ID.

For more information, refer to the class reference, as well as the Quick start guides. We also recommend checking out the code samples for the various client side operations under IdoJourneyActionType.