> For the complete documentation index, see [llms.txt](https://help.konnektive.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.konnektive.com/konnektive-crm/gateway-setup/gateways/cardstream.md).

# Cardstream

**STEP 1**

Obtain merchantID and merchantSecret from Cardstream. If you intend to send merchantPwd, please configure it on your Merchant Account with Cardstream. Choose to optionally use Secure 3DS.

**STEP 2**

Activate and edit the Cardstream gateway

<figure><img src="/files/2Uzpadzma7LdwHvPqZsT" alt="" width="375"><figcaption></figcaption></figure>

<figure><img src="/files/FWov6rf4NglFkS3DO4v9" alt="" width="437"><figcaption></figcaption></figure>

**STEP 3**

For Secure 3DS it may be required to pass browserData and ipAddress on the Import Order API call.

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 to get browserData:
<script type="text/javascript">
    const navigator = window.navigator;
    const browserData = {
        acceptHeader: 'application/json',
        colorDepth: screen.colorDepth,
        javaEnabled: navigator.javaEnabled(),
        javaScriptEnabled: true,
        language: navigator.language,
        screenHeight: screen.height,
        screenWidth: screen.width,
        timeZoneOffset: (new Date()).getTimezoneOffset().toString(),
        userAgent: navigator.userAgent
    };
    document.getElementById('browserData').value = JSON.stringify(browserData);
</script>
```

**STEP 5**

For Secure 3DS the checkout and upsell pages must support 3DS redirects

[Basic 3DS Instructions](/konnektive-crm/gateway-setup/basic-3ds-instructions.md)

<figure><img src="/files/kncmYYumIPw8Qrxz5nKl" alt="" width="375"><figcaption></figcaption></figure>

**STEP 1**

Obtain merchantID and merchantSecret from Cardstream. If you intend to send merchantPwd, please configure it on your Merchant Account with Cardstream. Optionally choose to enable 3D Secure.

<figure><img src="/files/moZaECcRUdfK47rGpqei" alt=""><figcaption></figcaption></figure>

**STEP 2**

Activate and edit the Cardstream gateway. Add your credentials.

<figure><img src="/files/od0zX0xZlX8sEgXCP7bP" alt="" width="375"><figcaption></figcaption></figure>

<figure><img src="/files/oHMwEFYm9WW9QgKIhYdn" alt="" width="437"><figcaption></figcaption></figure>

**STEP 3**

{% hint style="info" %}
For Secure 3DS it may be required to pass browserData and ipAddress on the Import Order API call.
{% endhint %}

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 to get browserData:
<script type="text/javascript">
    const navigator = window.navigator;
    const browserData = {
        acceptHeader: 'application/json',
        colorDepth: screen.colorDepth,
        javaEnabled: navigator.javaEnabled(),
        javaScriptEnabled: true,
        language: navigator.language,
        screenHeight: screen.height,
        screenWidth: screen.width,
        timeZoneOffset: (new Date()).getTimezoneOffset().toString(),
        userAgent: navigator.userAgent
    };
    document.getElementById('browserData').value = JSON.stringify(browserData);
</script>
```

**STEP 5**

If using Secure 3DS be sure the checkout page supports the challenge requests

[Basic 3DS Instructions](/konnektive-crm/gateway-setup/basic-3ds-instructions.md)
