# HiPay 3DS

<figure><img src="https://1103784913-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiAC0G99SjXjSv2GM5PAE%2Fuploads%2FJPZslZXm4mcEcWPzjdJB%2FUntitled.png?alt=media&#x26;token=9210d4dd-3abd-4369-b697-5b446443d6ba" alt=""><figcaption></figcaption></figure>

**STEP 1**

Obtain username and password from HiPay.

&#x20;

**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.

<figure><img src="https://1103784913-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiAC0G99SjXjSv2GM5PAE%2Fuploads%2FzW0aMY1SDNbrV9xmqb6c%2FUntitled-1.png?alt=media&#x26;token=c7c0c478-6afa-4d18-86ac-7a148e199386" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1103784913-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiAC0G99SjXjSv2GM5PAE%2Fuploads%2FOjyEJLaN2eZUV1huZNkK%2Fimage.png?alt=media&#x26;token=14d235e8-9171-40b7-bffc-5bba845f698d" alt=""><figcaption></figcaption></figure>

**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>
```
