Installing the Web SDK

To install the Web SDK, complete the following steps:

  1. Embed the Web SDK JavaScript file to your page by adding the following code to your website’s payment page.

    <script type="text/javascript" src=""></script>
  2. Access the Web SDK functionality from the window object.

  3. Make a call to your server to get an authentication token that you will need to use with the Web SDK. Note that the Web SDK only supports JWT tokens for authentication. For steps to get a token, review the Authentication topic.

    Use the following code to set up your credentials in the Web SDK.

    var sdk = new window.Elavon3DSWebSDK(
     baseUrl: "",  // Required. URL of Elavon’s 3DS Server.
     token: "JWT TOKEN"  // Generated by using the API key to send a request for a JWT token from the 3DS Server.
  4. Create a new instance of the object and assign it to your preferred variable.

    const sdk = new window.Elavon3DSWebSDK([options])


    (`const sdk = new window.Elavon3DSWebSDK({baseUrl: 'https://baseUrl', token: 'authentication token from step 3'})`)