---
title: What are widgets?
description: Our buy and sell flow as one embeddable element, inside your own pages.
---

The widget is the whole trading flow as a single custom element you put in your
own page. The customer never leaves your site, and you do not build any of the
screens: amount entry, payment, verification and delivery all happen inside it.

_(The page embeds a live buy/sell widget here, running against this environment.)_

That is not a picture — it is the same element a partner embeds, mounted here.

## Widget or Unified Checkout?

- **Unified Checkout** (A link) — You send the customer to a page we host. Least work, and nothing to maintain when a payment method changes. The customer leaves your site.
- **Widget** (An element) — The flow renders inside your page. The customer stays with you, and you own the surrounding layout. You embed and configure an element.

Both drive the same journeys, the same verification and the same webhooks. The
choice is about where the customer is standing, not about what they can do.

## How it fits together

One element, `<btcdirect-journey>`, configured by attributes. What the customer
sees is decided by **`subjects`** — buy, sell, onboarding — and the element
renders whichever step of that journey they are on, moving forward on its own as
the backend does.

It is not a router and it holds no URLs. Your page owns the address bar; the
element owns what is inside it. It talks to us over its own WebSocket, so a step
completing shows up without your page doing anything.

## Where to go next

[Journeys](https://partner.btcdirect.eu/v3/widget/journeys.md) is what to put in `subjects`.
[Attributes](https://partner.btcdirect.eu/v3/widget/attributes.md), [methods](https://partner.btcdirect.eu/v3/widget/methods.md) and
[events](https://partner.btcdirect.eu/v3/widget/events.md) are the reference for configuring it, answering it and
reacting to what it does. The customer's order history and recurring buys are
[elements of their own](https://partner.btcdirect.eu/v3/widget/other-widgets.md).

Integrated the v1 & v2 widget? Everything it does, this element does too:
[Coming from v1 & v2](https://partner.btcdirect.eu/v3/widget/coming-from-v1-v2.md) maps every call onto it.

> **Not yet available to embed**
>
> The element is real and is what runs above, but it is not published anywhere you
> can fetch it from yet — there is no package to install and no script URL to
> point at. Talk to your account manager about timing, and read
> [Unified Checkout](https://partner.btcdirect.eu/v3/unified-checkout.md) if you need something you can integrate
> today.
