> For the complete documentation index, see [llms.txt](https://developer.esw.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.esw.com/global-checkout/embedded-checkout/iframe-integration-steps.md).

# Iframe Integration Steps

## Enable iFrame Integration

{% stepper %}
{% step %}

#### Navigate to iFrame integration

Go to **Settings → Storefront Integration → iFrame Integration**.
{% endstep %}

{% step %}

#### **Enable the iFrame Integration option.**

<div data-with-frame="true"><img src="https://know.esw.com/download/attachments/1432223760/Screenshot%202025-01-27%20095228.png?version=1&#x26;modificationDate=1742465401464&#x26;cacheVersion=1&#x26;api=v2" alt=""></div>

{% endstep %}

{% step %}

#### **Create a new slot.**

{% endstep %}

{% step %}

#### Select iFrame Integration

In the slot configuration, select **iFrame Integration** as the integration type.
{% endstep %}

{% step %}

#### Configure

Configure the required integration settings shown in your test instance.

<div data-with-frame="true"><img src="https://know.esw.com/download/attachments/1432223760/Screenshot%202025-01-27%20102534.png?version=1&#x26;modificationDate=1742465401475&#x26;cacheVersion=1&#x26;api=v2" alt=""></div>
{% endstep %}

{% step %}

#### Set the Selector Value

Set the **selector** value to the CSS selector where the iFrame should be loaded on the page.\
This can be any valid CSS selector that points to the target container.
{% endstep %}

{% step %}

#### Save the Config

Save the configuration.
{% endstep %}

{% step %}

#### Copy Link

After saving, copy the generated **JavaScript asset link**.

<div data-with-frame="true"><img src="https://know.esw.com/download/attachments/1432223760/image-20250108-125008.png?version=1&#x26;modificationDate=1742465401486&#x26;cacheVersion=1&#x26;api=v2" alt=""></div>
{% endstep %}

{% step %}

#### Add Link to Storefront

Add this asset link to the **storefront header** on the checkout page.
{% endstep %}

{% step %}

#### Verify Script is Loaded

Ensure the script is loaded on the checkout frontend so the **ESW checkout iFrame** can render in the configured location.

{% code expandable="true" %}

```bash
https://assets.{env}.eshopworld.{net/com}/public/extensions/{tenantCode}/{slotId}.js
```

{% endcode %}

{% hint style="info" icon="js" %}
The current provision of the LTI script requires manual insertion of a JavaScript snippet on the frontend.  Dynamic `slotId` parameter:

{% code expandable="true" %}

```bash
https://assets.{env}.eshopworld.{net/com}/public/extensions/{tenantCode}/{slotId}.js
```

{% endcode %}
{% endhint %}
{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://developer.esw.com/global-checkout/embedded-checkout/iframe-integration-steps.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
