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

# Kurulum Amacı

> Kurulum amacı, bir kullanıcının anında satın alım yapmadan bir ödeme yöntemini ileride kullanmak üzere kaydetmesini sağlar.

> [!NOTE]
>
> Bu kaynağın [Whop API](https://docs.whop.com/tr/api-reference/legacy/setup-intents/setup-intent.md) içinde bir halefi vardır. Bu sayfa tam olarak desteklenmeye devam eder.

> [!NOTE]
>
> [Create setup intent](https://docs.whop.com/tr/api-reference/legacy/setup-intents/create-setup-intent.md) ile bir kurulum amacı oluşturun; `mode: "setup"` ile bağlanmış [ödeme öğelerinden](https://docs.whop.com/tr/elements/latest/payments/overview) bir onay tokeni veya yeniden doğrulanacak mevcut bir ödeme yöntemi iletin. Kurulum modundaki bir [Checkout Configuration](https://docs.whop.com/tr/api-reference/checkout-configurations/create-a-checkout-configuration.md), alıcı bu ödeme işlemini tamamladığında sizin için bir tane oluşturur. Her iki durumda da, ödeme yöntemi kaydedildikten sonra kimliğini almak için `setup_intent.succeeded` webhook'unu dinleyin.
>
> Akışın tamamı için [Ödeme yöntemlerini kaydetme](https://docs.whop.com/tr/developer/guides/save-payment-methods.md) sayfasına bakın.

```typescript theme={null}
// Create a setup intent from a confirmation token the payment elements minted in setup mode
const setupIntent = await client.setupIntents.create({
	account_id: "biz_xxxxxxxxxxxxx",
	confirmation_token: "ctok_xxxxxxxxxxxxxx",
	return_url: "https://yoursite.com/billing/saved",
	metadata: { customer_id: "your_internal_id" },
});

// Hand setupIntent.client_secret to the elements' handleNextAction for any pending step,
// then listen for setup_intent.succeeded on your webhook handler.
```

```json Example theme={null}
{
	"checkout_configuration": {
		"id": "ch_xxxxxxxxxxxxxxx"
	},
	"company": {
		"id": "biz_xxxxxxxxxxxxxx"
	},
	"created_at": "2023-12-01T05:00:00.401Z",
	"error_message": "Your card was declined.",
	"id": "sint_xxxxxxxxxxxxx",
	"member": {
		"id": "<string>",
		"user": {
			"email": "<string>",
			"id": "<string>",
			"name": "<string>",
			"username": "<string>"
		}
	},
	"metadata": {},
	"payment_method": {
		"card": {
			"brand": "mastercard",
			"exp_month": 42,
			"exp_year": 42,
			"last4": "4242"
		},
		"created_at": "2023-12-01T05:00:00.401Z",
		"id": "payt_xxxxxxxxxxxxx",
		"mailing_address": {
			"city": "<string>",
			"country": "<string>",
			"line1": "<string>",
			"line2": "<string>",
			"name": "<string>",
			"postal_code": "<string>",
			"state": "<string>"
		},
		"payment_method_type": "acss_debit"
	},
	"status": "processing",
	"three_ds_verified": true
}
```

**checkout\_configuration** `object | null` *required*

Bu kurulum amacıyla ilişkili ödeme oturumu yapılandırması. Ödeme oturumu kullanılmadıysa null olur.

**alt öznitelikler**

**id** `string` *required*

Ödeme oturumunun benzersiz tanımlayıcısı.

Örnek: `ch_xxxxxxxxxxxxxxx`

**company** `object | null` *required*

Bu kurulum amacını başlatan şirket. Şirket silindiyse null olur.

**alt öznitelikler**

**id** `string` *required*

Şirketin benzersiz tanımlayıcısı.

Örnek: `biz_xxxxxxxxxxxxxx`

**created\_at** `string\<date-time\>` *required*

Kurulum amacının oluşturulduğu tarih ve saat.

Örnek: `2023-12-01T05:00:00.401Z`

**error\_message** `string | null` *required*

Kurulum amacının neden başarısız olduğunu açıklayan, insan tarafından okunabilir bir hata mesajı. Hata oluşmadıysa null olur.

Örnek: `Your card was declined.`

**id** `string` *required*

Kurulum amacının benzersiz tanımlayıcısı.

Örnek: `sint_xxxxxxxxxxxxx`

**member** `object | null` *required*

Bu kurulum amacıyla ilişkili şirket üyesi. Kullanıcı üye değilse null olur.

**alt öznitelikler**

**id** `string` *required*

Şirket üyesinin benzersiz tanımlayıcısı.

**user** `object | null` *required*

Varsa, bu üyeye ait kullanıcı.

**alt öznitelikler**

**email** `string | null` *required*

Kullanıcının dijital posta adresi.

**id** `string` *required*

Şirket üyesi kullanıcının benzersiz tanımlayıcısı.

**name** `string | null` *required*

Kullanıcının tam adı.

**username** `string` *required*

Whop kullanıcı adı.

**metadata** `object | null` *required*

Bu kurulum amacına eklenmiş özel anahtar-değer çiftleri. Meta veri sağlanmadıysa null olur.

**payment\_method** `object | null` *required*

Bu kurulum amacının oluşturduğu kayıtlı ödeme yöntemi. Kurulum başarıyla tamamlanmadıysa null olur.

**alt öznitelikler**

**card** `object | null` *required*

Banka kartı veya kredi kartıysa, ödeme yöntemiyle ilişkili kart verileri.

**alt öznitelikler**

**brand** `CardBrands | null` *required*

Kart ağı (ör. visa, mastercard, amex). Marka belirlenemediyse null olur.

Kullanılabilir seçenekler: `mastercard`, `visa`, `amex`, `discover`, `unionpay`, `jcb`, `diners`, `link`, `troy`, `visadankort`, `visabancontact`, `china_union_pay`, `rupay`, `jcbrupay`, `elo`, `maestro`, `tarjeta_naranja`, `cirrus`, `nspk_mir`, `verve`, `ebt`, `private_label`, `local_brand`, `uatp`, `wexcard`, `uzcard`, `meeza`, `hrg_store_card`, `girocard`, `fuel_card`, `dankort`, `carnet`, `atm_card`, `china_union_payuzcard`, `codensa`, `cabal`, `hipercard`, `jcblankapay`, `cmi`, `aura`, `accel`, `culiance`, `nyce`, `pulse`, `star`, `eftpos`, `alelo`, `edenred`, `sodexo`, `unknown`

**exp\_month** `integer | null` *required*

Kartın iki haneli son kullanma ayı (1-12). Mevcut değilse null olur.

Örnek: `42`

**exp\_year** `integer | null` *required*

Kartın iki haneli son kullanma yılı (ör. 2027 için 27). Mevcut değilse null olur.

Örnek: `42`

**last4** `string | null` *required*

Kart numarasının son dört hanesi. Mevcut değilse null olur.

Örnek: `4242`

**created\_at** `string\<date-time\>` *required*

Ödeme tokeninin oluşturulduğu tarih ve saat.

Örnek: `2023-12-01T05:00:00.401Z`

**id** `string` *required*

Ödeme tokeninin benzersiz tanımlayıcısı.

Örnek: `payt_xxxxxxxxxxxxx`

**mailing\_address** `object | null` *required*

Ödeme yönteminin kullanıcısıyla ilişkili posta adresi

**alt öznitelikler**

**city** `string | null` *required*

Adresin şehri.

**country** `string | null` *required*

Adresin ülkesi.

**line1** `string | null` *required*

Adresin 1. satırı.

**line2** `string | null` *required*

Adresin 2. satırı.

**name** `string | null` *required*

Müşterinin adı.

**postal\_code** `string | null` *required*

Adresin posta kodu.

**state** `string | null` *required*

Adresin eyaleti.

**payment\_method\_type** `PaymentMethodTypes` *required*

Ödeme yönteminin ödeme yöntemi türü

Kullanılabilir seçenekler: `acss_debit`, `addi`, `affirm`, `afterpay_clearpay`, `alipay`, `alipayhk`, `alma`, `amazon_pay`, `apple`, `apple_pay`, `au_bank_transfer`, `au_becs_debit`, `bacs_debit`, `bancolombia`, `bancontact`, `bank_wire`, `billie`, `blik`, `boleto`, `bre_b`, `ca_bank_transfer`, `capchase_pay`, `card`, `card_present`, `card_installments_three`, `card_installments_six`, `card_installments_twelve`, `cashapp`, `claritypay`, `coinbase`, `crypto`, `crypto_subscription`, `custom`, `customer_balance`, `demo_pay`, `duitnow_qr`, `efecty`, `eps`, `eu_bank_transfer`, `fpx`, `flex_pay`, `gb_bank_transfer`, `gcash`, `giropay`, `google_pay`, `gopay`, `grabpay`, `id_bank_transfer`, `ideal`, `interac`, `international_bank_wire`, `kakao_pay`, `klarna`, `klarna_pay_now`, `konbini`, `kr_card`, `kr_market`, `kriya`, `kueski`, `link`, `mb_way`, `m_pesa`, `mercado_pago`, `mercado_pago_ar`, `mercado_pago_mx`, `mobilepay`, `modo`, `mondu`, `multibanco`, `naver_pay`, `nequi`, `netbanking`, `ng_bank`, `ng_bank_transfer`, `ng_card`, `ng_market`, `ng_ussd`, `ng_wallet`, `nupay`, `nz_bank_account`, `oney`, `oney_3x`, `oney_4x`, `opay`, `oxxo`, `p24`, `pago_efectivo`, `pse`, `pay_by_bank`, `payco`, `paynow`, `paypal`, `paypal_express`, `paypay`, `payto`, `payto_email`, `payto_phone`, `payto_bank_account`, `pix`, `pix_automatico`, `platform_balance`, `promptpay`, `qris`, `rapipago`, `rechnung`, `revolut_pay`, `samsung_pay`, `satispay`, `scalapay`, `sencillito`, `sepa_debit`, `sequra`, `servipag`, `sezzle`, `shop_pay`, `shopeepay`, `sofort`, `south_korea_market`, `spei`, `splitit`, `sunbit`, `swish`, `tabby`, `tamara`, `touch_n_go`, `twint`, `upi`, `us_bank_account`, `us_bank_transfer`, `venmo`, `verve`, `vipps`, `webpay`, `wechat_pay`, `whop_pay`, `yape`, `zip`, `coinflow`, `unknown`

**status** `SetupIntentStatuses` *required*

Kurulum amacının mevcut durumu.

Kullanılabilir seçenekler: `processing`, `succeeded`, `canceled`, `requires_action`

**three\_ds\_verified** `boolean` *required*

Bu ödeme yöntemi kurulurken 3D Secure kimlik doğrulamasının tamamlanıp tamamlanmadığı.
