The Trustev.js needs to be hosted and launched in order to generate the TrustevV2.SessionId. Therefore, during testing, you cannot use a simple html file, but will need to host it, for example with Xampp or Wamp.
Once set up you can use the following information to see if it's implemented correctly.
Using the developer tools, included in your browser:
- Hit F12 while using Google Chrome
- Hit Ctrl+Shift+I while using Mozilla Firefox
- Hit Command-Option-I while using Safari
- Hit F12 while using Internet Explorer
Under the Network tab you should see your Public Key value in the URL, along with a 200 Response code:
If this is correct, then you should navigate to the Console window, also in the developer tools, and type in TrustevV2.SessionId, and press enter. This should print out your TrustevV2.SessionId, which is required when adding a Case. See below: