Web SDK Migration Guide
Migration Guide (version 1 to version 2)
This guide will help you to migrate from version 1 to version 2 of the IDWise SDK.
Recommendation
We strongly recommend using the most recent version of our web SDK by referencing the assets (JS and CSS) from our
servers rather than using a local copy. This ensures you always have access to the latest improvements, bug fixes, and
security updates. By referencing the files directly from our servers, you can be sure that you are using the most
current version of the SDK.
Steps
Please follow these steps to migrate to the latest version of the SDK:
-
Update the reference to the style sheet file “https://app.idwise.ai/idwise.min.css”.
Replace
<link href="https://app.idwise.ai/idwise.min.css" rel="stylesheet">
With
<link href="https://releases.idwise.com/websdk/latest/idwise.min.css" rel="stylesheet">
-
Update the reference to the script file “https://app.idwise.ai/idwise.min.js”.
Replace
<script src="https://app.idwise.ai/idwise.min.js"></script>
With
<script src="https://releases.idwise.com/websdk/latest/idwise.min.js"></script>
Deprecation Note
-
businessId
parameter is deprecated and will be removed in a future release. Please useclientKey
instead in
theinitialize
function.Replace
initialize({ businessId, // Depricated clientKey, locale })
With
initialize({ clientKey, locale })
-
journeyTemplateId
&userId
parameters are deprecated and will be removed in a future release. Please renamejourneyTemplateId
->journeyDefinitionId
&userId
->referenceNo
instead in the
startJourney
function.Replace
startJourney({ mount: '#idwise-mount', journeyTemplateId: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx', // Depricated userId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // Depricated eventHandlers: { onFinished: function(details) { alert('Thanks for completing the registration') } } })
With
startJourney({ mount: '#idwise-mount', journeyDefinitionId: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx', // Same value as journeyDefId referenceNo: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // Same value as userId eventHandlers: { onFinished: function(details) { alert('Thanks for completing the registration') } } })
Updated 12 months ago