LEGACY WIDGET SDKTo refer to the previous Web SDK, see the legacy documentation.
Prerequisites
Before integrating the SDK, ensure you have:- An account on the Client Dashboard
- A web application built with your preferred framework or vanilla JavaScript
1. Installation
Install the SDK usingnpm or yarn:
- npm
- yarn
2. Backend Setup
Create a backend endpoint that calls the Platform API to generate a widget URL. Setwidget_type to connect_widget.
3. Retrieve the Widget URL
Call your backend endpoint from your web application to retrieve the widget URL.4. Render a Container Element
Add an HTML element where the Connect Widget will be mounted. This container must be available in the DOM before you initialize the widget.Example
5. Initialize and Mount the Widget
Import the SDK, callConnectWidget with the required properties, then mount the widget.
| Option | Type | Required | Description |
|---|---|---|---|
containerSelector | string | Yes | CSS selector for the DOM element where the widget will be mounted. |
url | string | Yes | The Connect Widget URL generated from the Platform API. |
onEvent | function | Yes | Callback function invoked for widget interactions. For a complete list of events you can handle, see Widget Events. |
iframeProps | object | No | Custom properties for the iframe element (styling, attributes). |
6. Make a Connection
Once the widget is mounted, users can interact with it to connect their financial institution accounts.7. Unmount the Widget
When you’re done with the widget or need to remove it from the page, call theunmount method:
SUCCESSYou’ve successfully embedded the Connect Widget in your web application using the Web SDK!

