- REST APIs
- Welcome
- Card Payments
- 3D Secure 2
- Vault
- Getting Started
- Using the API
- Typical API Calls
- Verify That the Service Is Accessible
- Create a Profile for a Customer
- Add an Address to a Profile
- Add a Card to a Profile
- Add a Bank Account to a Profile
- Create an Apple Pay Single-Use Token
- Create a Google Pay Single-Use Token
- Create a Mobile Single-Use Token
- Create a Direct Debit Single-Use Token
- Process a Transaction Using a Payment Token
- API Reference
- Test and Go Live
- Direct Debit
- Apple Pay
- Google Pay
- Alternate Payments
- Reports API
- ISV Reports
- Platforms
- Overview
- Accounts API V1
- Getting Started
- Using the API
- Typical API Calls
- Verify That the Service Is Accessible
- Create a New Merchant
- Create a New Merchant Account
- Create a New User
- Add an Address
- Create a Business Owner
- Add a Business Owner Address
- Add a Business Owner Identity Document
- Add a Merchant Bank Account
- Accept Our Terms and Conditions
- Activate the New Merchant Account
- Validate the Bank Account
- Enable Webhooks to Receive Application Statuses
- Test and Go Live
- Subaccounts
- Applications API
- Split Payouts
- Balance Transfers
- Paysafe Payments API
- Paysafe Checkout
- Paysafe JS
- Payments API
- Bad Bin API
- Reference Information
- SDKs
- Mobile SDKs
- Additional Documentation
- Resources and Support
- Shopping Carts
- Classic APIs
- Glossary
3D Secure 2 JavaScript 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>
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>