Definition
https://sandbox.bluesnap.com/services/2/threeDSecure
When using 3D Secure in Client-Side Encryption, you will need to obtain a unique 3D Secure token for each session, and then use that client-side to initialize 3D Secure.
JSON
JSON Request Content
To create a 3D Secure token, send a POST request to:
Sandbox: https://sandbox.bluesnap.com/services/2/threeDSecure
Production: https://ws.bluesnap.com/services/2/threeDSecure
JSON 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.
JSON 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 Example
{
"threeDSecureToken": "eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiJhMDM3MmVkMS02NTYzLTQ2MDQtYmQzMy0wZjM1Mzg5NzBiOTUiLCJpYXQiOjE1MTY2NTM0ODcsImlzcyI6IjM5OTI4ODgiLCJPcmdVbml0SWQiOiI1YTMxOWE3ZjZmZTNkMTEyN2NkNWZlMWUiLCJQYXlsb2FkIjp7Ik9yZGVyRGV0YWlscyI6eyJPcmRlck51bWJlciI6IjEyODkifX0sIlJlZmVyZW5jZUlkIjoiMTI4OSIsImV4cCI6MTUxNjY1NzA4N30.AtYYn-CvYBQ6F-u2gM7zPn0HA_GVuAcN0hOhewaKzdk"
}
XML
XML Request Content
To create a 3D Secure token, send a POST request to:
Sandbox: https://sandbox.bluesnap.com/services/2/three-d-secure
Production: https://ws.bluesnap.com/services/2/three-d-secure
XML 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.
XML 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 Example
<?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>