HiPay 3DS
STEP 1
Obtain username and password from HiPay.
STEP 2
Activate and edit the HiPay gateway. Enter username and password. Choose to process Secure3DS. If processing 3DS, then choose to force 3DS for all sales. To uncheck the force3DS box is to allow sales where 3DS is not available.
STEP 3
Add the hidden input browserData inside of the same form as the card input.
<input type="hidden" name="browserData" value="" id="browserData">
STEP 4
Add this script to your page before the closing body tag.
<script type="text/javascript">
const navigator = window.navigator;
const browserData = {
acceptHeader: 'application/json',
userAgent: navigator.userAgent,
language: navigator.language,
timezone: (new Date()).getTimezoneOffset().toString(),
colorDepth: screen.colorDepth,
screen: {
height: screen.height.toString(),
width: screen.width.toString()
},
javaScriptEnabled: true,
javaEnabled: navigator.javaEnabled()
};
document.getElementById('browserData').value = JSON.stringify(browserData);
</script>