> 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/adobe-commerce-magento/additional-features/embedded-checkout.md).

# Embedded Checkout

Embedded Checkout allows shoppers to complete their purchases directly within the retailer’s storefront using an iframe provided by ESW. This feature enhances the shopping experience by keeping the entire checkout process on the retailer’s site, thereby increasing shopper trust and confidence.

### How it works <a href="#how-it-works" id="how-it-works"></a>

To enable the iframe, it is required to configure it using Spark. This will provide the necessary JavaScript to load the iframe and handle all actions performed within it, such as:&#x20;

* Navigating back to the cart&#x20;
* Placing an order&#x20;
* Continue shopping
* Post order registration&#x20;

&#x20;

**Enabling feature in Magento admin**

The ESW Spark feature can be enabled and configured on a per-website basis within Magento. This allows some stores under one website to use the iFrame checkout integration, while other stores under different websites can continue using the external ESW checkout page.\
To Enable the feature, follow the steps below:

1. In the Magento admin panel, navigate to **“ESW > Checkout”**
2. Scroll down to the **“Spark Integration“** settings group
3. Set the **“Enable ESW Spark”** dropdown to **“Yes”**. Uncheck the “Use system value” checkbox
4. Enter the SPARK Javascript URL provided by ESW in the relevant field.

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

5. Enable Checkout IFrame
   * The **“Enable Checkout IFrame”** setting determines how the checkout process is handled:
     * Set to **“No”:** The shopper is entirely redirected off the retailer’s site to the ESW checkout (without any iFrame creation).
     * Set to **“Yes”:** The shopper remains on the retailer’s site, and the checkout is loaded into an iFrame.
       * Prerequisites for Enabling iFrame Checkout:
         * Enable ESW Spark must be set to **“Yes”**
         * A valid Spark JavaScript URL must be entered.
6. Save the configuration.

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


---

# 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/adobe-commerce-magento/additional-features/embedded-checkout.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.
