# 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="https://1103784913-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiAC0G99SjXjSv2GM5PAE%2Fuploads%2FZt7nkhZQEs7SgujSY2h9%2Fimage.png?alt=media&#x26;token=73ec1f35-cdfe-4590-8142-3b832cb460cd" alt="" width="375"><figcaption></figcaption></figure>

<figure><img src="https://1103784913-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiAC0G99SjXjSv2GM5PAE%2Fuploads%2FaVAHprFkIg9QaFcqGy13%2Fimage.png?alt=media&#x26;token=14688bad-5e7d-4768-a3ea-573a7f02a42d" 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](https://help.konnektive.com/konnektive-crm/gateway-setup/basic-3ds-instructions)

<figure><img src="https://1103784913-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiAC0G99SjXjSv2GM5PAE%2Fuploads%2Fk4hL5s4GqCYfzsn6tpx4%2FUntitled.png?alt=media&#x26;token=4b7f12e8-8be7-48b7-b05a-9e00792f163d" 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="https://1103784913-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiAC0G99SjXjSv2GM5PAE%2Fuploads%2F22rNn4QDLfSr1P4jseiu%2FUntitled-1.png?alt=media&#x26;token=9215095f-98f5-4ae6-a2ad-1cc9c7aed814" alt=""><figcaption></figcaption></figure>

**STEP 2**

Activate and edit the Cardstream gateway. Add your credentials.

<figure><img src="https://1103784913-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiAC0G99SjXjSv2GM5PAE%2Fuploads%2FvQBrXYiPprDWhFgzhTf8%2FUntitled.png?alt=media&#x26;token=9faf3f62-b44b-469b-b417-6406c1ed1c79" alt="" width="375"><figcaption></figcaption></figure>

<figure><img src="https://1103784913-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiAC0G99SjXjSv2GM5PAE%2Fuploads%2FQ9oJlwDCRKQBkFxM97W6%2Fimage.png?alt=media&#x26;token=eb8a5682-f7eb-458e-a11c-2cdaddd85471" 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](https://help.konnektive.com/konnektive-crm/gateway-setup/basic-3ds-instructions)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.konnektive.com/konnektive-crm/gateway-setup/gateways/cardstream.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
