Search Overlay

Including the 3D Secure 2 SDK

The JavaScript SDK is located at https://hosted.paysafe.com/threedsecure/js/version/paysafe.threedsecure.min.js.

JavaScript SDK functions

The JavaScript SDK consists of the start and challenge functions. Click the links below for full details.

Function Purpose
start Initializes the device fingerprinting procedure for a customer.
challenge

Initializes the challenge procedure that performs additional customer validation.

Including the JavaScript SDK

You should include the JavaScript SDK in your HTML form by adding a <script> element in either the header or body.

There are two ways to include the JavaScript SDK:

  • Include the latest official version – Paysafe strongly recommends this approach.
  • Include a specific version.

Include the Latest Official Version

To include the latest official version of the JavaScript SDK, use the following:

<head>
<script src="https://hosted.paysafe.com/threedsecure/js/latest/paysafe.threedsecure.min.js"></script>
</head>

Paysafe recommends this approach as you will automatically receive all the latest updates and bug fixes.

Include a Specific Version

Each specific version of the JavaScript SDK is located at https://hosted.paysafe.com/threedsecure/js/version/paysafe.threedsecure.min.js. To include one of these, replace version with the version of the JavaScript SDK you wish to use, for example:

<head>
<script src="https://hosted.paysafe.com/threedsecure/js/<version>/paysafe.threedsecure.min.js"></script>
</head>