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

# iOS Checkout SDK

> iOS uygulamanızda uygulama içi satın almalar ve abonelikler satın; ABD'de Whop ödemeleri, diğer her yerde StoreKit ile.

Whop iOS Checkout SDK, yerel iOS uygulamanızda uygulama içi satın almalar ve abonelikler satmanızı sağlar. Amerika Birleşik Devletleri'nde otomatik olarak Whop'un ödeme işlemesini kullanır (Apple'ın %15-30'una karşılık %2,7 + 0,30 \$). Diğer bölgelerde küresel kapsam için Apple'ın StoreKit'ine geri döner.

Yüz yüze ödeme almak için bunun yerine SDK'nın Apple Pay düğmesiyle [tek seferlik ödemeler alın](https://docs.whop.com/tr/developer/guides/ios/accept-one-time-payments.md).

> [!TIP]
>
> SDK, uygulama paketinizle birlikte göndermesi güvenli olan, kapsamı sınırlı bir `iap:read` API anahtarıyla yapılandırılır. Kurulum için [Bir API anahtarı oluşturun](https://docs.whop.com/tr/developer/guides/ios/installation.md#step-3-create-an-api-key) bölümüne bakın.

> [!NOTE]
>
> Ürünler ve Varyantlar güncel ticaret kaynaklarıdır. iOS SDK hâlâ `plans`, `CheckoutPlan`, `planMappings` ve `planId` gibi uyumluluk sembollerini sunar. Bu sembollerin tümü varyantları ifade eder.

## Neler oluşturabilirsiniz

> [card] [Bir ödeme duvarı oluşturun](https://docs.whop.com/tr/developer/guides/ios/build-a-paywall.md)
>
> Abonelik varyantlarını gösterin ve uygulamanızda satın almaları yönetin

> [card] [Yetkileri kontrol edin](https://docs.whop.com/tr/developer/guides/ios/check-entitlements.md)
>
> Abonelik durumunu doğrulayın ve premium içeriğe erişimi kısıtlayın

## İlgili iOS SDK'ları

Whop, gömülü deneyimler için ayrı SDK'lar da sunar:

> [card] [Gömülü sohbet](https://docs.whop.com/tr/developer/guides/chat/quickstart.md)
>
> Whop sohbet kanallarını doğrudan uygulamanıza ekleyin

> [card] [Cüzdan öğeleri](https://docs.whop.com/tr/elements/latest/getting-started.md)
>
> Swift cüzdan öğeleriyle bir hesabın bakiyelerini ve hareketlerini gösterin

## Hızlı örnek

SDK'yı iş başında gösteren eksiksiz bir örnek:

```swift theme={null}
import SwiftUI
import WhopCheckout

@main
struct MyApp: App {
    var body: some Scene {
        WindowGroup {
            ContentView()
                .environment(Checkout.shared)
                .task {
                    try? await Checkout.shared.configure(
                        // companyId: find in Dashboard URL (starts with biz_)
                        companyId: "biz_xxxxxxxxxxxxxx",
                        // apiKey: create in Dashboard > Developer with iap:read permission
                        apiKey: "your_api_key_here",
                        planMappings: [
                            .init(whopId: "plan_xxxxx", appleId: "monthly_sub")
                        ]
                    )
                }
        }
    }
}

struct ContentView: View {
    @Environment(Checkout.self) var checkout

    var body: some View {
        if checkout.isSubscribed {
            Text("Welcome, premium user!")
        } else {
            Button("Upgrade to Premium") {
                Task {
                    try? await checkout.purchase("plan_xxxxx")
                }
            }
        }
    }
}
```

## Başlarken

**1. SDK'yı yükleyin**

WhopCheckout paketini Swift Package Manager aracılığıyla Xcode projenize ekleyin.

[Kurulum kılavuzu →](https://docs.whop.com/tr/developer/guides/ios/installation.md)

**2. API anahtarınızı alın**

[Geliştirici Ayarlarınızda](https://whop.com/dashboard/developer) `iap:read` iznine sahip bir API anahtarı oluşturun. [Bunu yerleştirmek neden güvenli →](https://docs.whop.com/tr/developer/guides/ios/installation.md#step-3-create-an-api-key)

**3. SDK'yı yapılandırın**

SDK'yı hesap kimliğiniz, API anahtarınız ve `Checkout.shared.configure()` üzerindeki uyumluluk özelliği `planMappings` aracılığıyla varyant eşlemelerinizle başlatın.

**4. Ödeme duvarınızı oluşturun**

Varyantları gösterin ve satın almaları yönetin. SDK, ABD'de otomatik olarak Whop ödeme sayfasını, diğer yerlerde StoreKit'i kullanır.

[Bir ödeme duvarı oluşturun →](https://docs.whop.com/tr/developer/guides/ios/build-a-paywall.md)

## Referans

> [card] [API referansı](https://docs.whop.com/tr/developer/guides/ios/checkout-reference.md)
>
> Tüm Checkout sınıfları, yöntemleri ve türleri için eksiksiz API belgeleri

## Gereksinimler

* iOS 17.0+
* Xcode 15.0+
* Swift 5.10+


## Related topics

- [iOS Checkout SDK referansı](https://docs.whop.com/tr/developer/guides/ios/checkout-reference.md)
- [Ödeme Alın](https://docs.whop.com/tr/developer/guides/accept-payments.md)
- [Whop iOS SDK'larını yükleyin](https://docs.whop.com/tr/developer/guides/ios/installation.md)
