Interface: PaymentBrowserData
PSD2/3DS2 browser context shape. All fields are optional except the ones backed by a standard API — gateway-specific requirements decide which fields are mandatory.
Properties
acceptHeader?
optionalacceptHeader?:string
Accept HTTP header value — NOT available client-side (caller passes from server context or omits).
colorDepth
colorDepth:
number
Color depth bits-per-pixel (window.screen.colorDepth). Typically 24 or 32.
javaEnabled
javaEnabled:
boolean
Java support (navigator.javaEnabled?.()). Deprecated API but required by the
PSD2/EMV specification; falls back to false when the browser does not expose it.
language
language:
string
BCP 47 language tag (navigator.language). Falls back to 'en-US' when missing.
screenHeight
screenHeight:
number
Screen height in pixels (window.screen.height).
screenWidth
screenWidth:
number
Screen width in pixels (window.screen.width).
timezone?
optionaltimezone?:string
IANA timezone name (Intl.DateTimeFormat().resolvedOptions().timeZone).
Optional — some gateways use it instead of the numeric offset for risk scoring.
timezoneOffset
timezoneOffset:
number
Local timezone offset in minutes (ECMA signed convention — positive = behind UTC,
negative = ahead of UTC). For example, CET in winter = -60, PST in winter = 480.
userAgent
userAgent:
string
Full user-agent string (navigator.userAgent).