> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gochameleon.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Embed checkout

> Add the goChameleon wallet checkout to your website.

## Set up your checkout

Add a settlement wallet and create a checkout in the dashboard. Copy the embed from Checkout, then paste it into your site's HTML. Replace `YOUR_BUTTON_ID` with the checkout's public button ID.

```html theme={null}
<script src="https://assets.gochameleon.xyz/widget/gochameleon.js" async></script>
<div
  class="gochameleon-button"
  data-button-id="YOUR_BUTTON_ID"
  data-api="https://sandbox-api.gochameleon.xyz"
></div>
```

This example targets sandbox. For production, use a button from the production dashboard and `data-api="https://api.gochameleon.xyz"`. An embed does not require a secret API key.

## Allowed sites

If you configure allowed sites for a checkout, enter origins such as `https://shop.example.com`, one per line, without paths or query strings. Include the origin serving your embed.

## What the widget handles

The widget connects a wallet, switches to Arc, submits the payment, and polls for its verified status. Watch the payment move from **Awaiting payment** to **Completed** in your dashboard.

Fulfill orders from a verified [server-side event](https://docs.gochameleon.xyz/webhooks.md) or authenticated payment status. A browser redirect or client-only success message is not sufficient proof of payment.

For server-created orders with a unique hosted checkout URL, use the [payment creation quickstart](https://docs.gochameleon.xyz/quickstart.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.