# Interactive

The Interactive 3DS method provides control of what happens between the steps in the 3D cycle. This method is suitable for those who need some control in the 3DS process and want an easy integration.

GET flow

POST an authorization creatable to the authorization create endpoint with the query method=GET. The items field must be populated and the amount must be undefined.

There are two ways the 3D result can be sent. This is decided by either specifying the target field or the browser.parent field in the authorization creatable.

  1. Sent using a HTTP POST request, with form data as the payload, to the url you specify in the target field. This can be received through an endpoint.
  2. Sent using the window.postMessage() method to the window you specify in the browser.parent field. This can be received through an event listener.

POST /authorization?method=GET

    "number": "abcdef",
    "items": 7.5,
    "currency": "EUR",
    "card": {
		"pan": "4111111111111111",
		"expires": [2, 22],
		"csc": "987"
    "target": "http://your.example-url.com/",

# Authorization Responses

The authorization response can be one of three things:

  1. A "verification required" error response with status 400
  2. A successful authorization response with status 201
  3. A failed authorization

# Verification required

Example response:

    "status": 400,
    "type": "malformed content",
    "content": {
        "property": "card",
        "type": "Card.Creatable | Card.Token",
        "description": "verification required",
        "details": {
            "visible": false,
            "method": "GET",
            "url": "https://merchant.intergiro.com/v1/verification/redirect?target=https://3dsecure.io/&origin=http://your.example-url.com/&v=2.2.0"
    "error": "verification required"

A GET call to the url specified in content.details.url returns html that will perform one step of the 3D cycle. This call can be done by either redirecting to the url or by setting the url as the source of an Iframe.

If the target field is specified in the authorization creatable, the 3D response data will be POSTed to the specified url. The payload is sent as form data with card as key and a tokenized card as value.



If the browser.parent field is specified in the authorization creatable, the 3D response data will be sent using the window.postMessage() method to the specified window. To receive the data, add an event lister as below:

window.addEventListener("message", async e => {
    if (e.data.destination == "parent" && e.data.content.name == "card") {
     authorization.card = e.data.content.value

Take the tokenized card from the payload and set it on the property card on the authorization creatable and POST to the authorization endpoint as previously.

Treat the authorization response according to Authorization Response Section.

# Authorization Success

A successful authorization has status 201.

# Authorization Failed

Any other error than "verification required" and a successful authorization is a failed authorization.

# Example

A full example can be accessed from the github repository or downloaded as a html file. To test the code, a public api key is required to be added to the const key in the code.