ThreeDS SDK overview

The threeDS.js is a JavaScript based client-side SDK for 3DS authentication flows for online payments.

Supported only in API version 54 and later.


URL Copied to clipboard

https://na.gateway.mastercard.com/static/threeDS/1.3.0/three-ds.min.js

Functions Copied to clipboard

configure()

Configuration method for initializing the API.

isConfigured()

Convenience method to check if the API has been configured successfully.

onEvent()

Method to subscribe for event changes.

initiateAuthentication()

Initiate 3DS Authentication for the arguments passed.

authenticatePayer()

Authentication method for authenticating payer using 3DS that was initiated using initiateAuthentication call.

getLastCorrelationId()

Get the last correlation id that was used for making the REST API call.