HTML + Javascript
Steps to integrate the Preventor broker SDK into HTML and JavaScript vanilla application.
1. Installation
To install the Preventor Broker SDK, add the following script.
<script
type="module"
src="https://sdk.preventor.com/pvtidaas/broker/broker.esm.js"
></script>2. Setup the SDK
Add
pvt-brokertag into your HTML.
<pvt-broker></pvt-broker>Set your configuration
You can find your credentials on the Preventor platform


You can find the broker ID on the Preventor platform



Call the
open()method to open the component
pvt-brokeremits a loaded event when the Preventer Broker SDK finishes downloading. In the example below, the loaded event is utilized to enable a button that opens the Preventer Broker SDK.
A complete
HTMLfile should look similar to the example below.
Congratulations, the Preventor Broker SDK has been successfully configured!

Last updated
Was this helpful?