{"metadata":{"image":[],"title":"","description":""},"api":{"url":"","auth":"optional","results":{"codes":[]},"settings":"57ee593a21ceb20e0061959e","examples":{"codes":[]},"method":"post","params":[]},"next":{"description":"","pages":[]},"title":"Create 3D Secure Token","type":"endpoint","slug":"create-3d-secure-token","excerpt":"","body":"##Definition\nhttps<span>://sandbox.bluesnap.com/services/2/threeDSecure</span>\n\n<hr>\n\n##Documentation  \nWhen 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. \n\nFor detailed instructions, see [3D Secure in Client-Side Encryption](/docs/3d-secure#section-3d-secure-in-client-side-encryption). \n[block:html]\n{\n  \"html\": \"<ul class=\\\"nav nav-pills nav-justified\\\">\\n  <li class=\\\"active\\\"><a data-toggle=\\\"pill\\\" href=\\\"#menujson\\\">JSON</a></li>\\n  <li><a data-toggle=\\\"tab\\\" href=\\\"#menuxml\\\">XML</a></li>\\n</ul>\\n<div class=\\\"tab-content\\\">\\n  <div id=\\\"menujson\\\" class=\\\"tab-pane fade in active\\\">\"\n}\n[/block]\n###JSON Request Content\nTo create a 3D Secure token, send a POST request to:\nSandbox: `https://sandbox.bluesnap.com/services/2/threeDSecure`\nProduction: `https://ws.bluesnap.com/services/2/threeDSecure`\n\n###JSON Response Details\nIf successful, the response HTTP status code is 200 OK.\nThe response includes the [threeDSecure](doc:threedsecure-json-object) object, with the token provided as the value of the `threeDSecureToken` property.\n\n<hr />\n\n##JSON Examples\n\n###Request Example\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"curl -v -X POST https://sandbox.bluesnap.com/services/2/threeDSecure \\\\\\n-H 'Content-Type: application/json' \\\\\\n-H 'Accept: application/json' \\\\ \\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\",\n      \"language\": \"curl\",\n      \"name\": \"Create 3D Secure Token Request\"\n    }\n  ]\n}\n[/block]\n###Response Example\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"threeDSecureToken\\\": \\\"eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiJhMDM3MmVkMS02NTYzLTQ2MDQtYmQzMy0wZjM1Mzg5NzBiOTUiLCJpYXQiOjE1MTY2NTM0ODcsImlzcyI6IjM5OTI4ODgiLCJPcmdVbml0SWQiOiI1YTMxOWE3ZjZmZTNkMTEyN2NkNWZlMWUiLCJQYXlsb2FkIjp7Ik9yZGVyRGV0YWlscyI6eyJPcmRlck51bWJlciI6IjEyODkifX0sIlJlZmVyZW5jZUlkIjoiMTI4OSIsImV4cCI6MTUxNjY1NzA4N30.AtYYn-CvYBQ6F-u2gM7zPn0HA_GVuAcN0hOhewaKzdk\\\"\\n}\",\n      \"language\": \"json\",\n      \"name\": \"Create 3D Secure Token Response: 200 OK\"\n    }\n  ]\n}\n[/block]\n\n[block:html]\n{\n  \"html\": \" </div>\\n <div id=\\\"menuxml\\\" class=\\\"tab-pane fade\\\">\"\n}\n[/block]\n###XML Request Content\nTo create a 3D Secure token, send a POST request to:\nSandbox: `https://sandbox.bluesnap.com/services/2/three-d-secure`\nProduction: `https://ws.bluesnap.com/services/2/three-d-secure`\n\n###XML Response Details\nIf successful, the response HTTP status code is 200 OK.\nThe response includes the [three-d-secure](doc:three-d-secure-xml-resource) resource, with the token provided as the value of the `three-d-secure-token` property.\n\n<hr />\n\n##XML Examples\n\n###Request Example\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"curl -v -X POST https://sandbox.bluesnap.com/services/2/three-d-secure \\\\\\n-H 'Content-Type: application/xml' \\\\\\n-H 'Accept: application/xml' \\\\ \\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\",\n      \"language\": \"curl\",\n      \"name\": \"Create 3D Secure Token Request\"\n    }\n  ]\n}\n[/block]\n###Response Example\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"yes\\\"?>\\n<three-d-secure xmlns=\\\"http://ws.plimus.com\\\">\\n  <three-d-secure-token>eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiI2NTJiMThkYy0zZGRkLTQwMTctYWIxYi1jMDNmYThlZWVlMmEiLCJpYXQiOjE1MTY2NTM1NDEsImlzcyI6IjM5OTI4ODgiLCJPcmdVbml0SWQiOiI1YTMxOWE3ZjZmZTNkMTEyN2NkNWZlMWUiLCJQYXlsb2FkIjp7Ik9yZGVyRGV0YWlscyI6eyJPcmRlck51bWJlciI6IjEyOTEifX0sIlJlZmVyZW5jZUlkIjoiMTI5MSIsImV4cCI6MTUxNjY1NzE0MX0.NibHceT4I5Id5HDoVkPCcnhQu4A7W47hBjNHY-B5YsQ</three-d-secure-token>\\n</three-d-secure>\",\n      \"language\": \"xml\",\n      \"name\": \"Create 3D Secure Token Response: 200 OK\"\n    }\n  ]\n}\n[/block]\n\n[block:html]\n{\n  \"html\": \" </div>\\n</div>\"\n}\n[/block]","updates":[],"order":2,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"5e5d3a6a50180a007203a597","category":{"sync":{"isSync":false,"url":""},"pages":[],"title":"3D Secure","slug":"3d-secure","order":2,"from_sync":false,"reference":false,"_id":"5e5d3a6a50180a007203a583","version":"5e5d3a6a50180a007203a5d0","project":"57336fd5a6a9c40e00e13a0b","createdAt":"2018-02-05T13:26:23.419Z","__v":0},"project":"57336fd5a6a9c40e00e13a0b","user":"560d5913af97231900938124","parentDoc":null,"version":{"version":"8976-Tools","version_clean":"8976.0.0-Tools","codename":"Live","is_stable":false,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["5e5d3a6a50180a007203a580","5e5d3a6a50180a007203a581","5e5d3a6a50180a007203a582","5e5d3a6a50180a007203a583","5e5d3a6a50180a007203a584","5e5d3a6a50180a007203a585","5e5d3a6a50180a007203a586","5e5d3a6a50180a007203a587","5e5d3a6a50180a007203a588","5e5d3a6a50180a007203a589","5e5d3a6a50180a007203a58a","5e5d3a6a50180a007203a58b","5b34c737e0dca2000311de6a","5e5d3a6a50180a007203a58c","5e5d3a6a50180a007203a58d","5e8787e99842700072035e06"],"_id":"5e5d3a6a50180a007203a5d0","project":"57336fd5a6a9c40e00e13a0b","__v":1,"forked_from":"5c6c245bc0d91f0185a7409c","createdAt":"2018-04-23T15:17:35.680Z","releaseDate":"2018-04-23T15:17:35.680Z"},"createdAt":"2018-02-05T13:26:47.114Z","githubsync":"","__v":0}

postCreate 3D Secure Token


Definition

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


Documentation

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.

For detailed instructions, see 3D Secure in Client-Side Encryption.