Create 3-D Secure Token

When using 3-D Secure in Client-Side Encryption, you will need to obtain a unique 3-D Secure token for each session, and then use that client-side to initialize 3-D Secure.

Endpoint

https://sandbox.bluesnap.com/services/2/threeDSecure

JSON

Request Content

To create a 3-D Secure token, send a POST request to the Sandbox or Production endpoint:

https://sandbox.bluesnap.com/services/2/threeDSecure
https://ws.bluesnap.com/services/2/threeDSecure

Response Details

If successful, the response HTTP status code is 200 OK. The response includes the threeDSecure object, with the token provided as the value of the threeDSecureToken property.

Examples

Request Example

curl -v -X POST https://sandbox.bluesnap.com/services/2/threeDSecure \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \ 
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '

Response Examples

{
  "threeDSecureToken": "eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiJhMDM3MmVkMS02NTYzLTQ2MDQtYmQzMy0wZjM1Mzg5NzBiOTUiLCJpYXQiOjE1MTY2NTM0ODcsImlzcyI6IjM5OTI4ODgiLCJPcmdVbml0SWQiOiI1YTMxOWE3ZjZmZTNkMTEyN2NkNWZlMWUiLCJQYXlsb2FkIjp7Ik9yZGVyRGV0YWlscyI6eyJPcmRlck51bWJlciI6IjEyODkifX0sIlJlZmVyZW5jZUlkIjoiMTI4OSIsImV4cCI6MTUxNjY1NzA4N30.AtYYn-CvYBQ6F-u2gM7zPn0HA_GVuAcN0hOhewaKzdk"
}

XML

Request Content

To create a 3-D Secure token, send a POST request to the Sandbox or Production endpoint:

https://sandbox.bluesnap.com/services/2/three-d-secure
https://ws.bluesnap.com/services/2/three-d-secure

Response Details

If successful, the response HTTP status code is 200 OK. The response includes the three-d-secure resource, with the token provided as the value of the three-d-secure-token property.

Examples

Request Example

curl -v -X POST https://sandbox.bluesnap.com/services/2/three-d-secure \
-H 'Content-Type: application/xml' \
-H 'Accept: application/xml' \ 
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '

Response Examples

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<three-d-secure xmlns="http://ws.plimus.com">
  <three-d-secure-token>eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiI2NTJiMThkYy0zZGRkLTQwMTctYWIxYi1jMDNmYThlZWVlMmEiLCJpYXQiOjE1MTY2NTM1NDEsImlzcyI6IjM5OTI4ODgiLCJPcmdVbml0SWQiOiI1YTMxOWE3ZjZmZTNkMTEyN2NkNWZlMWUiLCJQYXlsb2FkIjp7Ik9yZGVyRGV0YWlscyI6eyJPcmRlck51bWJlciI6IjEyOTEifX0sIlJlZmVyZW5jZUlkIjoiMTI5MSIsImV4cCI6MTUxNjY1NzE0MX0.NibHceT4I5Id5HDoVkPCcnhQu4A7W47hBjNHY-B5YsQ</three-d-secure-token>
</three-d-secure>