Device Data

The card issuer uses Device Data Collection (DDC) to fingerprint the customer's device.

Along with the risk data in the authentication request, it's used to decide if a challenge is needed or if the authentication can be frictionless (no challenge displayed to your customer).

Device data initialization

POST your device data initialization request to the 3ds:deviceDataInitialize action link.

This request creates a JSON Web Token (JWT) that is used as part of the Device Data Collection (DDC) form. The DDC form also requires the first six digits of your customer's card number (BIN). The BIN can be returned if a token resource is provided, see JWT + BIN (token) request.

For consistency of integration you can also provide the full card number JWT + BIN (card). It will be truncated to become the BIN in the response.

Device data initialization example request

POST https://try.access.worldpay.com/verifications/customers/3ds/deviceDataInitialization

{
    "transactionReference": "Memory265-13/08/1876",
    "merchant": {
        "entity": "default"
    }
}
Parameter
Mandatory
Description

transactionReference

Y

A unique reference for device data JWT request. for example, e-commerce order code. Use the same transactionReference across all 3 potential request types (deviceDataInitialization, authentication, verification).

merchant.entity

Y

Used to route the request in Access Worldpay, created as part of on-boarding.

paymentInstrument.type

N

An identifier for the paymentInstrument being used. type : card/front

  • See JWT + BIN (card) above

type : card/tokenized

  • See JWT + BIN (token) above

Device data initialization response

Best Practice

Access Worldpay returns a WP-CorrelationId in the headers of service responses. We highly recommend you log this. The WP-CorrelationId is used by us to examine individual service requests.

To understand what these outcomes mean and how to reproduce them for testing purposes see 3DS testing

Parameter
Description

deviceDataCollection.jwt

A digitally signed token that contains additional details required for DDC. Expires in 10 minutes for both Try and Production.

deviceDataCollection.url

A POST action on the DDC form. Used to redirect to the issuers DDC page.

deviceDataCollection.bin

First six digits of the card number (Bank Identification Number), used as part of DDC. Returned if a token resource or card number is included in the request.

Device Data Collection (DDC)

Once you have the JWT, URL and BIN you can create and submit the DDC form.

A SessionId representing this collection is then used as part of the risk analysis by the issuer in the authentication request.

Device Data Collection form

Here's an example of how you would set-up the DDC form in an iframe.

  • Create a hidden iframe and set the src attribute with the URL of the page that will POST the DDC form. This URL should contain in query string parameters the deviceDataCollection.jwt, deviceDataCollection.bin and deviceDataCollection.url as those will be used in the DDC form.

  • Create and host the page that POSTs the DDC form.

Device Data Collection postMessage

Once the DDC form is submitted and is successfully sent to the card issuer, you are notified via a postMessage event.

For security, verify the sender's identity using the postMessage origin property as detailed here.

Environment
Origin

Try

https://centinelapistag.cardinalcommerce.com

Production

https://centinelapi.cardinalcommerce.com

An example postMessage response:

Key
Value

messageType

profile.completed

SessionId

UUID, not present or undefined

Status

  • true - Use the SessionId value in deviceData.collectionReference as part of the Authentication request

  • false - SessionId is empty. Either retry DDC or send the authentication request without the deviceData.collectionReference.

The DDC call typically takes 1-2 seconds, depending on the latency between the customer's device, the Cardinal servers and, in part, the type of device data collection performed by the different issuers. The 3DS specification has the maximum response time at 10 seconds.

Last updated