# Embedding

Find out which embedding option works for you.\
No matter if you work with a [custom Gateway](/developer/guides/gateway.md) or the [Payrexx tools](https://docs.payrexx.com/merchant/payrexx-administration/tools).

{% hint style="warning" %}
Prior to this article, you should have created a [Gateway ](/developer/guides/gateway.md)or configured a [Payrexx tool](https://docs.payrexx.com/merchant/payrexx-administration/tools)!
{% endhint %}

## Redirect

After the payment, your buyer will be redirected back to your site.

{% hint style="success" %}
We recommend redirection for complex integrations using the Payrexx API
{% endhint %}

## iFrame

The iFrame lets you seamlessly integrate a payment form into your website.\
This can be a good marketing website integration opportunity.

{% content-ref url="/pages/-MdGNLD4Rsz35wTy4iip" %}
[iFrame](/developer/guides/embedding/iframe.md)
{% endcontent-ref %}

### Limited Payment Providers in iFrame

Some payment providers or payment methods do not allow embedding in an iFrame and cannot be used. These include *PayPal* and *Coinbase*.

Others can only be used with specific setup configurations. Such as *Google Pay*.

*PostFinance* is disabled in iFrames if the client device disallows 3rd party cookies. This is the standard behaviour for iOS and MacOS.

## Modal Window

Your buyer will never leave your website with the modal window. The payment form appears in a pop up window.

{% content-ref url="/pages/-MdGNN6YwZxN27dbwiQF" %}
[Modal Window](/developer/guides/embedding/modal-window.md)
{% endcontent-ref %}

### Limited Payment Providers in Modal Window

Some payment providers or methods do not allow embedding in a Modal Window and cannot be used. These include *PayPal and* *Coinbase*.

*PostFinance* is disabled in Modal Windows if the client device disallows 3rd party cookies. This is the standard behaviour for iOS and MacOS clients.

## Mobile Apps

Also for mobile apps based on JavaScript there is an available solution.

{% content-ref url="/pages/-Mi5aZmjExa3ipjg6EIt" %}
[Mobile Apps](/developer/guides/embedding/mobile-apps.md)
{% endcontent-ref %}


---

# 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://docs.payrexx.com/developer/guides/embedding.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.
