# Payment links (/docs/payments/payment-links)

A payment link is your product's own page on Swop. Put it anywhere: a button on your site, a bio, an email, a QR code on a table. There's no key and no code.

## The link [#the-link]

```text
https://www.swopme.app/p/<your-swop-id>/<productId>
```

- `<your-swop-id>` is your Swop handle, lowercase (for `acme.swop.id`, use `acme`).
- `<productId>` is the product's `_id` from [`GET /products`](/docs/api-reference/products), or copy the link from the product in the Swop app.

## What happens when someone opens it [#what-happens-when-someone-opens-it]

| Who opens it | What they get |
|---|---|
| A person in a browser | A product page with a **Buy** button. They pay by USDC from any wallet, or by card if your account is verified for card. |
| An AI agent | An HTTP **402 Payment Required** challenge. The agent pays in USDC on Base and the purchase completes without a page. See [Agent payments](/docs/agent-payments). |

Either way you get the same order, the same receipt email and the same [webhooks](/docs/webhooks).

## Add it to your site [#add-it-to-your-site]

```html
<a href="https://www.swopme.app/p/acme/66a1b2c3d4e5f6a7b8c9d0e1"
   style="display:inline-block;padding:12px 20px;border-radius:999px;background:#3FE08F;color:#00140a;font-weight:700;text-decoration:none">
  Buy now
</a>
```

## When to move on [#when-to-move-on]

Payment links send the buyer to Swop to pay. If you want them to stay on your site, use [framed checkout](/docs/payments/framed-checkout). If you want your own cart and payment UI, use [headless checkout](/docs/payments/headless-checkout).
