> ## 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

> Whop'un kayıtlı satıcı (merchant of record) bildirimi: alıcının Whop'un Alıcı Hizmet Şartları'nı ve Gizlilik Politikası'nı kabul ettiği metin, Whop logo yazısıyla birlikte. Zorunludur; ödeme, kart ve kart alanları elementleri bu bağlanana kadar yükleme durumunda kalır ve onsuz ödemeler onaylanamaz.

> [!NOTE]
>
> Bu sayfa `@whop/elements@1.10.0` ve `@whop/elements-react@1.10.0` sürümlerini belgeler.

*`v1.0.0` sürümünden beri.*

[`Payments`](https://docs.whop.com/tr/elements/latest/payments/overview) içine bağlanır. Prop'ları ve geri çağırmaları oluşturma seçenekleri veya React prop'ları aracılığıyla iletin.

> [!NOTE]
>
> **Zorunlu.** Bir Payments tanıtıcısındaki diğer elementler (`AddressElement`, `EmailElement` ve `TaxIdElement` hariç), `BrandingElement` bağlanana kadar yükleme durumunda kalır; onu bu elementlerle birlikte bağlayın.

Bir `WhopPayments` kapsamı içine bağlanır. Her ödeme yüzeyinin taşıması gereken kayıtlı satıcı satırı; Whop logo yazısı bir vektör yolu olarak çizilir.

Ücretin ve onay token'ının sahibi olan `<Payments>` içine bağlayın. `<Payments>` ise `<WhopElements>` içine bağlanır. Veri toplayan her formda zorunludur: hiçbiri bağlı değilken `createConfirmationToken` reddeder ve formunuzun geri kalanıyla aynı temayı kullanır.

```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()
            }
        }
    }
}
```

Örnek veriler. [Playground'u açın](https://docs.whop.com/tr/elements/latest/payments/overview#playground).

[React Native örnek uygulamasında Android üzerinde çalışan BrandingElement](https://app.revyl.ai/embed/c280bcb7-3262-4cc8-a0ef-d77bc0c49b55?controls=0)

## Prop'lar

*Bu element herhangi bir kullanıcı prop'u almaz.*

## Olaylar

Geri çağırmaları oluşturma seçeneklerinde veya React prop'larında iletin.

### `onLoaderStart`

Yükleme iskeleti ilk kez çizildikten sonra ve `onReady` öncesinde çalışır.

### `onReady`

Elementin ilk eksiksiz çiziminden sonra çalışır.

### `onError`

Element yüklenemediğinde veya çöktüğünde çalışır. Yedek görünüm görünür kalır. Programatik işleme için `code` kullanın. `sourceKey`, başarısız olan host-state kaynağını tanımlar.

**e** `object`

**özellikler**

**message** `string` *required*

**code** `string`

**sourceKey** `string`

## Metotlar

Bunları `create` tarafından döndürülen tanıtıcı (handle) üzerinde veya bir React `ref` aracılığıyla çağırın.

### `mount`

Elementi `target` içine bağlar ve yüklemeyi başlatır. React bileşenleri kendilerini bağlar.

**Parametreler**

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

### `destroy`

Elementi kaldırır ve çerçevesini ile aboneliklerini serbest bırakır. Birden fazla kez çağırabilirsiniz. React elementi otomatik olarak kaldırır.

### `update`

Yeni prop'ları bağlı elementle birleştirir. React'te bunun yerine bileşen prop'larını değiştirin.

**Parametreler**

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

## Stil verme

Bu element stil vermek için sınıf adları sunmaz. Yeniden stillendirmek için `appearance` (tema, vurgu rengi, değişkenler) kullanın.

## Durumlar

Hemen görüntülenir. Hiçbir şey getirmez ve hata durumu yoktur.

## Bilmekte fayda var

* **Bağlı değilken `createConfirmationToken` reddeder.** Bu satışlarda kayıtlı satıcı Whop'tur, bu nedenle alıcıya ödeme yaptığı ekranda bunun söylenmesi gerekir.
* Logo yazısı bir dosya değil, bir vektör yoludur; bu nedenle framework herhangi bir görsel paketi taşımaz.

## Kurulum

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

> [!NOTE]
>
> Denetleyiciyi oluşturan ve içeriğine ileten bir `WhopPayments(accountID:charge:)` kapsamı içine bağlayın. Bir e-posta oturum açma işlemi alıcıyı doğruladığında `payments.buyer` oturum açmış alıcıdır. `WhopBrandingElement` da ekranda olmalıdır; çünkü bu satışlarda kayıtlı satıcı (merchant of record) Whop'tur ve `createConfirmationToken` onsuz reddeder. `.whopElementsAppearance(_:)` ile stil verin. Modül, cüzdan SDK'sının `WhopElements` modülü değil, `Elements` modülüdür. [Başlarken](https://docs.whop.com/tr/elements/latest/getting-started.md) ve [Görünüm](https://docs.whop.com/tr/elements/latest/appearance.md) sayfalarına bakın.

## Prop'lar

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

Elementin dış `View` bileşenine uygulanır. Tema için, bu yüzeydeki her elementi kapsayan sağlayıcı üzerindeki `appearance.parts` seçeneğini tercih edin. React Native parça adlarının bugün web'in `whop-*` sınıf adlarından farklı, kendine ait bir küme olduğunu unutmayın; bu nedenle bir web appearance nesnesi değiştirilmeden aktarılamaz.

**fallback** `ReactNode`

Element yüklenirken yerleşik iskelet yerine gösterilir.

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

Element etkileşimli hâle geldiğinde bir kez tetiklenir. `<Payments>` bunları gruplar, bu nedenle genellikle istediğiniz şey onun kendi `onLoadingChange` geri çağırmasıdır.

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

Bu element için bir yükleme veya yapılandırma hatası. Element her iki durumda da kendi hata ekranını gösterir.

## Durumlar

Hemen görüntülenir. Yüklenecek verisi ve kendine ait durumları yoktur.

## Bilmekte fayda var

* Zorunludur. Hiçbir `BrandingElement` bağlı değilken `createConfirmationToken`, tıpkı web elementlerinin branding eklenene kadar görünmeyi bekletmesi gibi, bir `BrandingRequiredError` ile reddeder.
* `<Payments>` içinde herhangi bir yere, genellikle gönder düğmenizin altına bir kez bağlayın.
* Logo yazısı, çözümlenen temanın açık veya koyu görünümünü kendiliğinden izler.

> [!NOTE]
>
> Uygulamanızı bir kez `<WhopElements getToken={…}>` ile sarın, ardından elementlerin etrafına `<Payments>` bağlayın. [Başlarken](https://docs.whop.com/tr/elements/latest/getting-started.md) ve [Görünüm](https://docs.whop.com/tr/elements/latest/appearance.md) sayfalarına bakın.


## Related topics

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