# Payments overview (/docs/payments)

Swop Payments lets you take money for your products **on your own website**, without building payments plumbing. You list products in Swop, connect your site with a merchant API key, and Swop handles pricing, the payment itself, the receipt email, the order record and your payout.

## The 30-second version [#the-30-second-version]

1. You create products in the Swop app (or with an API key that has `commerce.write`).
2. A buyer chooses something on your site.
3. Swop shows them a payment: **USDC** from any wallet, or **card** if your account is verified for card.
4. The money lands, Swop creates the order and emails a receipt. You never call a "confirm" endpoint.
5. Swop pays you out in USDC, minus a **0.5%** fee. For physical goods sold online, your payout waits until the buyer confirms delivery ([escrow](/docs/payments/statuses-and-escrow)).

<Callout title="New to crypto payments?">
**USDC** is a digital dollar: 1 USDC is designed to be worth 1 US dollar and is issued by Circle. "Paid in USDC" means the money arrives in your Swop wallet as dollars on a blockchain, which you can hold, send or swap in the Swop app. A payment has **settled** when the transfer is final on the blockchain. You don't need to understand blockchains to use this API: Swop watches the chain for you and tells you when money has arrived.
</Callout>

## Three ways to integrate [#three-ways-to-integrate]

Pick the one that matches how much of the checkout you want to own. All three settle the same way and produce the same orders and webhooks.

| | What the buyer sees | What you build | Key scopes | Time to ship |
|---|---|---|---|---|
| **[Payment link](/docs/payments/payment-links)** | Swop's product page | Nothing: paste a link | none | Minutes |
| **[Framed checkout](/docs/payments/framed-checkout)** | Swop's checkout, inside your page | One server route that mints a short-lived token | `commerce.embed` | An afternoon |
| **[Headless checkout](/docs/payments/headless-checkout)** | Your own cart and payment UI | A cart, a server route and a payment step | `commerce.checkout`, `commerce.read` | A day or two |

<Cards>
  <Card title="Quickstart" href="/docs/payments/quickstart" description="Take your first payment from your own server in about ten minutes." />
  <Card title="Crypto vs. card" href="/docs/payments/crypto-vs-card" description="Which buyers can pay how, and what each rail needs from you." />
  <Card title="Webhooks" href="/docs/webhooks" description="Ship on checkout.paid. Book revenue on payout.released." />
  <Card title="API reference" href="/docs/api-reference" description="Every merchant endpoint, with request and response examples." />
</Cards>

## Buyer protection your customers can see [#buyer-protection-your-customers-can-see]

For anything physical sold online, Swop holds the buyer's payment in **escrow** and releases it to you once the order arrives: when the buyer confirms, or 30 days after it's marked delivered. Swop's checkout explains this to the buyer before they pay, so a customer who doesn't know your shop yet can buy with confidence. Digital items pay you straight away. See [Statuses and escrow](/docs/payments/statuses-and-escrow).

## Let an assistant do the setup [#let-an-assistant-do-the-setup]

If you use ChatGPT, Claude, Cursor or another assistant connected to Swop, it can allow your website, add the webhook and write the server code. See [Set up your website from chat](/docs/mcp/set-up-your-site).

## AI agents can buy too [#ai-agents-can-buy-too]

Every Swop product is also sellable to AI agents. When an agent (rather than a browser) requests your product link, Swop answers with an HTTP 402 payment challenge and the agent pays in USDC on Base automatically. You don't build anything for this. See [Agent payments](/docs/agent-payments).

{/* TODO(review): /docs/agent-payments is owned by another section; confirm the final path. */}

## Fees [#fees]

| Rail | Fee | Who pays it |
|---|---|---|
| Crypto (USDC) | **0.5%**, minimum 0.015 USDC per checkout | You. It comes out of your proceeds; the buyer pays exactly your listed price. |
| Card | Shown separately in the response for each checkout | You |

The fee breakdown for every checkout is in its `fees` object, so you never have to calculate it yourself:

```json
"fees": {
  "currency": "USDC",
  "feesPayer": "merchant",
  "subtotalAmount": 30,
  "platformFeeBps": 50,
  "platformFeeAmount": 0.15,
  "merchantReceivesAmount": 29.85,
  "totalDueAmount": 30
}
```

## Who can accept what [#who-can-accept-what]

- **Crypto is never gated on identity.** Any Swop account can take USDC as soon as it has products. No business verification, no KYC.
- **Card needs merchant verification.** Complete it in the Swop app. Until then, a key with the `commerce.card` scope simply behaves as crypto-only; nothing breaks.

## Before you go live [#before-you-go-live]

<Callout type="warn" title="There is no sandbox yet">
Swop doesn't have test keys or a test mode today. Every checkout you create is real. Test with a low-priced product of your own and pay it from a different wallet. `http://localhost` is accepted for embed origins and webhook URLs so you can develop locally.
</Callout>
