> For the complete documentation index, see [llms.txt](https://docs.blockchain.com/pay/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.blockchain.com/pay/getting-started/integration-options/web-integration.md).

# Web Integration

When integrating our widget on web, there are several methods you can use.&#x20;

### 1. Embed within a custom modal/drawer or directly on a page

```markup
<iframe
        title="Blockchain.com Pay widget"
        src="https://www.blockchain.com/pay/widget?apiKey=[your-api-key]"
        allow="autoplay *; camera *; microphone *; fullscreen *; accelerometer *; magnetometer *; gyroscope *; picture-in-picture *; payment *" />
```

{% hint style="warning" %}
You need to whitelist your domain in Blockchain.com Pay dashboard for embedded widget to work.
{% endhint %}

### 2. Open a new window or a new tab

Our widget is a standalone web application which can be accessed directly by the URL. You can use your pre-configured URL to open a new window or a new tab for a user to continue the on-ramp journey.

{% hint style="info" %}
We suggest you make it clear to user that they will be taken to Blockchain.com Pay in a new window or a new tab when using this option.&#x20;
{% endhint %}

## Widget configuration

Our widget is configurable by adding query parameters to the base URL. Please refer to [Customise the Widget](/pay/getting-started/customise-the-widget.md) page for more details.


---

# 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://docs.blockchain.com/pay/getting-started/integration-options/web-integration.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.
