braintree-web icon indicating copy to clipboard operation
braintree-web copied to clipboard

Changes to Visa 3DS Data Requirements

Open JordanMoffat opened this issue 1 year ago • 2 comments

Issue description

Visa is announcing changes to the Visa Secure data field mandate originally communicated in the 31 August 2023 edition of the Visa Business News. The effective date has been updated to 12 August 2024 and the number of required data fields has been reduced.

Visa has mandated that the following fields are required for 3DS in a browser:

Browser IP Address Browser Screen Height Browser Screen Width

Having collectDeviceData set to true collects the screen height and width, but I can't see any documentation that would suggest it collects the IP address.

Does Braintree Web Collect the IP address in this scenario, and if not, are there any plans to bring it into the SDK?

JordanMoffat avatar May 23 '24 08:05 JordanMoffat

same question.. I see a similar question posted here - https://github.com/braintree/braintree-web-drop-in/issues/922

do we have to get the ip address by ourselves?

longsangstan avatar Jul 02 '24 11:07 longsangstan

Please check the code below as it shows IP is not collected when it's enabled. I imagine you would need to collect that yourself, as the SDK won't know the IP.

  if (options.collectDeviceData === true) {
    data.browserColorDepth = window.screen.colorDepth;
    data.browserJavaEnabled = window.navigator.javaEnabled();
    data.browserJavascriptEnabled = true;
    data.browserLanguage = window.navigator.language;
    data.browserScreenHeight = window.screen.height;
    data.browserScreenWidth = window.screen.width;
    data.browserTimeZone = new Date().getTimezoneOffset();
    data.deviceChannel = "Browser";
  }

talopy avatar Jul 02 '24 21:07 talopy