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

> ## Agent Instructions
> Treat these docs and the Whop MCP server as the source of truth for Whop API behavior. Don't infer endpoint behavior from marketing pages.
> MCP server: connect https://mcp.whop.com/mcp (streamable HTTP, browser sign-in, no API key in the client config) to search these docs and read or change live Whop data. Setup: https://docs.whop.com/developer/guides/ai_and_mcp.md
> Whop CLI: install with `curl -fsSL https://whop.com/install.sh | sh` to scaffold, run, and deploy Whop apps and websites. It acts on production, not the sandbox. Overview: https://docs.whop.com/cli/overview.md Agent mode: https://docs.whop.com/cli/agent-mode.md
> Hosting: Whop serves a site or app from the build `whop apps deploy` uploads, with rollbacks, secrets, and server logs. Guide: https://docs.whop.com/developer/websites/hosting.md
> Plugins: in Claude Code, run `/plugin marketplace add whopio/plugins`, then `/plugin install whop@whop`. Guide: https://docs.whop.com/developer/guides/plugins/claude-code.md Every agent tool: https://docs.whop.com/developer/ai/overview.md
> Environments: build and test in the sandbox (API `https://sandbox-api.whop.com/api/v1`, keys at https://sandbox.whop.com/dashboard/developer, SDK environment `Sandbox`; no real money). Production (API `https://api.whop.com/api/v1`, keys at https://whop.com/dashboard/developer, SDK environment `Production`, the SDK default) moves real money, so use it only at launch. The two share no accounts, keys, products, or webhooks, and their keys look identical: never mix them. Sandbox guide: https://docs.whop.com/developer/guides/sandbox.md Comparison: https://docs.whop.com/developer/quickstart.md
> API: send `Authorization: Bearer <API_KEY>` from your server only, and pin a dated version with the `Api-Version-Date` header. OpenAPI spec: https://api.whop.com/api/v1/openapi.json
> Which API: build on the Current API, whose pages live under https://docs.whop.com/api-reference/ (start at https://docs.whop.com/api-reference/overview.md). Pages under /api-reference/legacy/ are the Legacy API. Use one only when https://docs.whop.com/api-reference/stability.md lists the resource as Legacy-only.

# BrandingElement

> De merchant-of-record-melding van Whop: de instemming van de koper met de Buyer Terms of Service en het Privacy Policy van Whop, met het Whop-woordmerk. Vereist — de elementen voor betaling, kaart en kaartvelden blijven in hun laadstatus totdat het is gemount, en betalingen kunnen zonder dit element niet worden bevestigd.

> [!NOTE]
>
> Deze pagina documenteert `@whop/elements@1.10.0` en `@whop/elements-react@1.10.0`.

*Sinds `v1.0.0`.*

Wordt gemount binnen [`Payments`](https://docs.whop.com/nl/elements/latest/payments/overview). Geef props en callbacks mee via de create-opties of als React-props.

> [!NOTE]
>
> **Vereist.** De andere elementen in een Payments-handle, behalve `AddressElement`, `EmailElement` en `TaxIdElement`, blijven in hun laadstatus totdat `BrandingElement` is gemount — mount het samen met de andere.

Wordt gemount binnen een `WhopPayments`-scope. De merchant-of-record-regel die elk betaaloppervlak moet bevatten, met het Whop-woordmerk getekend als pad.

Mount binnen `<Payments>`, dat de afschrijving en het bevestigingstoken beheert. `<Payments>` zelf wordt gemount binnen `<WhopElements>`. Vereist op elk formulier dat gegevens verzamelt: `createConfirmationToken` weigert zolang er geen is gemount, en het neemt het thema van de rest van je formulier over.

```tsx React theme={null}
import { WhopElements, Payments, BrandingElement } from "@whop/elements-react";
import { loadWhop } from "@whop/elements";

function Example() {
  return (
    <WhopElements elements={loadWhop()}>
      <Payments /* options */>
        <BrandingElement />
      </Payments>
    </WhopElements>
  );
}
```

```tsx React Native theme={null}
import { BrandingElement, Payments } from '@whop/elements-react-native';

<Payments accountId="biz_xxxxxxxx" plan="plan_xxxxxxxx">
  {/* your form */}
  <BrandingElement />
</Payments>
```

```html JavaScript theme={null}
<script src="https://cdn.whop.com/elements/amber/elements.js" data-whop-elements></script>
<script type="module">
  const payments = window.WhopElements().payments.create({ /* options */ });
  payments.create('branding').mount('#payments-branding');
</script>
```

```swift Swift theme={null}
import Elements
import SwiftUI

// .whopElements(environment:) runs once at the app root. See Getting started.
struct CheckoutScreen: View {

    var body: some View {
        WhopPayments(accountID: "biz_xxxx", charge: .plan(id: "plan_xxxx")) { payments in
            ScrollView {
                VStack(alignment: .leading, spacing: 20) {
                WhopPaymentElement()
                    WhopBrandingElement()
                }
                .padding()
            }
        }
    }
}
```

Voorbeeldgegevens. [Open de Playground](https://docs.whop.com/nl/elements/latest/payments/overview#playground).

[BrandingElement draaiend op Android, in de React Native-voorbeeldapp](https://app.revyl.ai/embed/c280bcb7-3262-4cc8-a0ef-d77bc0c49b55?controls=0)

## Props

*Dit element accepteert geen consumentenprops.*

## Events

Geef callbacks mee in de create-opties of als React-props.

### `onLoaderStart`

Wordt uitgevoerd nadat het laadskelet voor het eerst is weergegeven en vóór `onReady`.

### `onReady`

Wordt uitgevoerd na de eerste volledige weergave van het element.

### `onError`

Wordt uitgevoerd wanneer het element niet kan laden of crasht. De fallback blijft zichtbaar. Gebruik `code` voor programmatische afhandeling. `sourceKey` identificeert een mislukte host-state-bron.

**e** `object`

**eigenschappen**

**message** `string` *required*

**code** `string`

**sourceKey** `string`

## Methoden

Roep deze aan op de handle die `create` retourneert, of via een React-`ref`.

### `mount`

Mount het element in `target` en begint met laden. React-componenten mounten zichzelf.

**Parameters**

**target** `string | HTMLElement` *required*

### `destroy`

Verwijdert het element en geeft het frame en de abonnementen vrij. Je kunt het meerdere keren aanroepen. React verwijdert het element automatisch.

### `update`

Voegt nieuwe props samen in het gemounte element. Wijzig in React in plaats daarvan de componentprops.

**Parameters**

**options** `Partial\<BrandingElementProps\>` *required*

## Styling

Dit element stelt geen klassenamen beschikbaar voor styling. Gebruik `appearance` (thema, accentkleur, variabelen) om het opnieuw te stylen.

## Statussen

Wordt direct weergegeven. Het haalt niets op en heeft geen foutstatus.

## Goed om te weten

* **`createConfirmationToken` weigert zolang het niet is gemount.** Whop is merchant of record bij deze verkopen, dus de koper moet dat te zien krijgen op het scherm waar die betaalt.
* Het woordmerk is een vectorpad, geen asset, dus het framework bevat geen afbeeldingsbundel.

## Installatie

```swift theme={null}
dependencies: [
    .package(url: "https://github.com/whopio/elements-swift.git", from: "0.1.0")
]
```

> [!NOTE]
>
> Mount het binnen een `WhopPayments(accountID:charge:)`-scope, die de controller aanmaakt en aan de inhoud doorgeeft. `payments.buyer` is de ingelogde koper zodra een inlog via e-mail er een heeft bevestigd. `WhopBrandingElement` moet ook op het scherm staan, omdat Whop merchant of record is bij deze verkopen en `createConfirmationToken` zonder dit element weigert. Style met `.whopElementsAppearance(_:)`. De module is `Elements`, niet `WhopElements` van de wallet-SDK. Zie [Aan de slag](https://docs.whop.com/nl/elements/latest/getting-started.md) en [Appearance](https://docs.whop.com/nl/elements/latest/appearance.md).

## Props

**style** `StyleProp\<ViewStyle\>`

Toegepast op de buitenste `View` van het element. Gebruik voor thema's bij voorkeur `appearance.parts` op de provider, dat elk element op dit oppervlak dekt. Let op: de namen van React Native-onderdelen vormen momenteel een eigen set, niet de `whop-*`-klassenamen van het web, dus een appearance-object voor het web is niet ongewijzigd over te zetten.

**fallback** `ReactNode`

Wordt weergegeven in plaats van het ingebouwde skelet terwijl het element laadt.

**onReady** `() =\> void`

Wordt eenmaal geactiveerd zodra het element interactief is. `<Payments>` groepeert deze, dus de eigen `onLoadingChange` daarvan is meestal wat je nodig hebt.

**onError** `(error: \{ message: string; code?: string \}) =\> void`

Een laad- of configuratiefout voor dit element. Het element geeft in beide gevallen zijn eigen foutscherm weer.

## Statussen

Wordt direct weergegeven. Het heeft geen gegevens om te laden en geen eigen statussen.

## Goed om te weten

* Vereist. `createConfirmationToken` weigert met een `BrandingRequiredError` zolang er geen `BrandingElement` is gemount, precies zoals de webelementen hun weergave uitstellen totdat de branding is gekoppeld.
* Mount het eenmaal ergens binnen `<Payments>`, meestal onder je verzendknop.
* Het woordmerk volgt zelf de lichte of donkere weergave van het vastgestelde thema.

> [!NOTE]
>
> Wikkel je app eenmaal in `<WhopElements getToken={…}>` en mount daarna `<Payments>` rond de elementen. Zie [Aan de slag](https://docs.whop.com/nl/elements/latest/getting-started.md) en [Appearance](https://docs.whop.com/nl/elements/latest/appearance.md).


## Related topics

- [CardCvcElement](https://docs.whop.com/nl/elements/latest/payments/cardFields-cardCvc.md)
- [CardExpiryElement](https://docs.whop.com/nl/elements/latest/payments/cardFields-cardExpiry.md)
- [CardNumberElement](https://docs.whop.com/nl/elements/latest/payments/cardFields-cardNumber.md)
