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

# Redirect Integration

This is the easiest and fastest way to integrate Paychant widget into your app. You can copy and edit the below example code to add a button or link to the Paychant widget directly into a page of your website or app.

{% tabs %}
{% tab title="Sandbox" %}
{% code overflow="wrap" %}

```html
<a 
href="https://widget.paychant.com/sand/buy?env=sandbox&assetAmount=20.5&partnerApiKey=[YOUR_SANDBOX_PARTNER_API_KEY]&partnerLogoUrl=[YOUR_BRAND_LOGO_URL]&partnerThemeColor=[YOUR_BRAND_THEME_COLOR]"
target="_blank">Stablecoin on/off ramp with Paychant</a>
```

{% endcode %}
{% endtab %}

{% tab title="Production" %}
{% code overflow="wrap" %}

```html
<a 
href="https://widget.paychant.com/prod/buy?env=production&assetAmount=20.5&partnerApiKey=[YOUR_PRODUCTION_PARTNER_API_KEY]&partnerLogoUrl=[YOUR_BRAND_LOGO_URL]&partnerThemeColor=[YOUR_BRAND_THEME_COLOR]"
target="_blank">Stablecoin on/off ramp with Paychant</a>
```

{% endcode %}
{% endtab %}
{% endtabs %}

**Using the redirect integration**

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

You can simply implement this integration by redirecting your user to `https://widget.paychant.com/sand` or `https://widget.paychant.com/prod` and using the [parameters](/integrations/parameters.md) needed to populate the user order details in the widget. Your user will be directed to the Paychant widget where their order will be pre-filled with the parameters that were passed through.

This method of approach is very straightforward, and it works great for desktop and mobile integrations - no additional work is required! All you have to do is add a link to your app.

You can set custom options for your integration, by adding them as query parameters in the URL.

More details on supported parameters and examples can be found [here](/integrations/parameters.md).


---

# 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.paychant.com/integrations/redirect-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.
