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

# 결제 받기

> 195개국에서 100가지 이상의 결제 수단으로 일회성 결제와 반복 결제를 받으세요

✨ Build this with AI

Copy and paste our templates using your favorite editor

Claude
Cursor
Codex
Lovable

* more

[Open](https://whop.com/network/examples?filter=checkouts)

체크아웃 링크로, 또는 Whop Elements를 사용해 자체 사이트에서 일회성 결제와 반복 결제를 받으세요. Whop은 **195개국**에서 **100가지 이상의 결제 수단**을 지원하며, 구매자의 위치에 따라 적합한 결제 수단이 자동으로 표시됩니다. [모든 결제 수단 보기](https://docs.whop.com/ko/payments-and-billing/local-payment-methods.md).

> [!TIP]
>
> iOS 앱의 경우 [Whop iOS Checkout SDK](https://docs.whop.com/ko/developer/guides/ios/overview.md)가 더 낮은 수수료(Apple의 15–30% 대비 2.7% + \$0.30)로 체크아웃을 네이티브로 처리합니다. 이 SDK는 [앱에 안전하게 포함할 수 있는](https://docs.whop.com/ko/developer/guides/ios/installation.md#step-3-create-an-api-key) 범위가 제한된 `iap:read` API 키를 사용합니다.

## 통합 방식 선택하기

자체 사이트에서의 모든 방식은 [Whop Elements](https://docs.whop.com/ko/elements/latest/getting-started.md)를 기반으로 동작합니다. 체크아웃을 얼마나 직접 제어하고 싶은지에 따라 선택하세요. 각 행은 클라이언트, 서버, 반환 페이지를 나란히 보여 주는 단계별 빠른 시작으로 연결됩니다.

| | 체크아웃 링크 | [체크아웃 요소](https://docs.whop.com/ko/developer/guides/embed-checkout.md) | [결제 요소](https://docs.whop.com/ko/developer/guides/payment-elements.md) | [익스프레스 체크아웃](https://docs.whop.com/ko/developer/guides/express-checkout.md) | [결제 요청](https://docs.whop.com/ko/developer/guides/payment-request.md) |
| - | - | - | - | - | - |
| **제공되는 것** | Whop이 호스팅하는 체크아웃 페이지 | 페이지에 들어가는 Whop의 전체 체크아웃 | 직접 디자인한 양식을 위한 PCI 격리 필드 | 변형을 위한 Apple Pay 및 Google Pay 버튼 | 자체 버튼 뒤에서 열리는 지갑 시트 |
| **작업량** | 낮음 | 낮음 | 높음 | 낮음 | 높음 |
| **사용자 지정** | 브랜딩 | 테마 및 레이아웃 | 자체 양식과 결제 버튼 | 지갑 및 레이아웃 | 시트를 제외한 모든 것 |
| **가격** | 변형에서 가져옴 | 변형에서 가져옴 | 변형에서 가져오거나 직접 전달한 금액 | 변형에서 가져옴 | 직접 전달한 금액 |
| **구매 경로의 서버 코드** | 없음 | 없음 | 있음, 확인 토큰으로 결제하기 위해 | 없음 | 있음, 확인 토큰으로 결제하기 위해 |
| **외부 사이트 단계** | 자동 처리 | 자동 처리, `returnUrl`로 돌아옴 | 직접 `handleNextAction` 실행 | 자동 처리, `returnUrl`로 돌아옴 | 직접 `handleNextAction` 실행 |
| **적합한 용도** | 링크 공유, 빠른 설정 | 자체 디자인의 상품 페이지나 장바구니 | 처음부터 끝까지 직접 디자인하는 체크아웃 | 변형의 원클릭 구매 | 직접 계산하는 장바구니 또는 합계 |

무엇을 선택하든 두 가지 규칙이 적용됩니다. 주문 처리는 브라우저가 아니라 반드시 [`payment.succeeded` 웹훅](https://docs.whop.com/ko/developer/guides/webhooks)에서 하세요. 그리고 방식이 `returnUrl`을 받는 경우, 구매자는 외부 사이트 단계를 마친 뒤 **결과와 상관없이** 해당 URL로 이동합니다. Whop은 `payment`와 `status`(`succeeded`, `failed` 또는 `canceled`)를 덧붙이므로, `returnUrl`의 페이지는 감사 메시지를 표시하기 전에 `status`를 확인해야 합니다.

> [card] [결제 요소로 체크아웃 만들기](https://docs.whop.com/ko/developer/guides/payment-elements.md)
>
> 브라우저에서 확인 토큰을 수집하고 서버에서 결제합니다.

> [card] [체크아웃 임베드하기](https://docs.whop.com/ko/developer/guides/embed-checkout.md)
>
> 구매 경로에 서버 코드 없이 Whop의 전체 체크아웃을 페이지에 넣습니다.

> [card] [익스프레스 체크아웃 추가하기](https://docs.whop.com/ko/developer/guides/express-checkout.md)
>
> 변형을 위한 원클릭 Apple Pay 및 Google Pay 버튼입니다.

> [card] [지갑 버튼 만들기](https://docs.whop.com/ko/developer/guides/payment-request.md)
>
> 자체 버튼에서 지갑 시트를 열고 주문 가격을 직접 정합니다.

## 체크아웃 링크 공유하기

체크아웃 링크는 결제를 받는 가장 간단한 방법입니다. 변형을 생성하면 공유 가능한 체크아웃 URL을 받을 수 있습니다.

> [tab] 대시보드
>
> 1. [대시보드](https://whop.com/dashboard/links/checkout) > **Checkout links**로 이동합니다
>    2\. **+ Create checkout link**를 선택합니다
> 2. 상품을 선택하고 가격(무료, 일회성 또는 반복 결제)을 구성합니다
> 3. **Create checkout link**를 선택합니다
>
> 생성된 링크는 고객과 직접 공유하거나 웹사이트에 임베드할 수 있습니다.

> [tab] API
>
> API로 변형을 생성하여 `purchase_url`을 받습니다:
>
> ```typescript TypeScript theme={null}
> import { WhopClient } from "@whop/sdk";
>
> const client = new WhopClient({
>   token: "Account API Key",
> });
>
> // account_id: find in Dashboard > Settings
> // product_id: find in Dashboard > Products
> const variant = await client.variants.create({
>   account_id: "biz_xxxxxxxxxxxxx",
>   product_id: "prod_xxxxxxxxxxxxx",
>   initial_price: 10.0,
>   plan_type: "one_time",
> });
>
> console.log(variant.purchase_url);
> ```
>
> ```python Python theme={null}
> from whop_sdk import Whop
>
> client = Whop(
>     token="Account API Key",
> )
>
> # account_id: find in Dashboard > Settings
> # product_id: find in Dashboard > Products
> variant = client.variants.create(
>     account_id="biz_xxxxxxxxxxxxx",
>     product_id="prod_xxxxxxxxxxxxx",
>     initial_price=10.0,
>     plan_type="one_time",
> )
>
> print(variant.purchase_url)
> ```
>
> ```rust Rust theme={null}
> use whop_sdk::prelude::*;
>
> let config = ClientConfig {
>     token: Some("Account API Key".to_string()),
>     ..Default::default()
> };
> let client = Whop::new(config).expect("Failed to build client");
>
> // account_id: find in Dashboard > Settings
> // product_id: find in Dashboard > Products
> let variant = client
>     .variants
>     .create(
>         &CreateVariantsRequest {
>             account_id: Some("biz_xxxxxxxxxxxxx".to_string()),
>             product_id: Some("prod_xxxxxxxxxxxxx".to_string()),
>             initial_price: Some(10.0),
>             plan_type: Some("one_time".to_string()),
>             ..Default::default()
>         },
>         None,
>     )
>     .await?;
>
> println!("{}", variant.purchase_url);
> ```
>
> ```go Go theme={null}
> import (
>     "context"
>     "fmt"
>     "log"
>
>     whopsdk "github.com/whopio/whopsdk-go/v2"
>     "github.com/whopio/whopsdk-go/v2/client"
>     "github.com/whopio/whopsdk-go/v2/option"
> )
>
> client := client.NewWhop(option.WithToken("Account API Key"))
>
> // account_id: find in Dashboard > Settings
> // product_id: find in Dashboard > Products
> variant, err := client.Variants.Create(context.TODO(), &whopsdk.CreateVariantsRequest{
>     AccountID:    whopsdk.String("biz_xxxxxxxxxxxxx"),
>     ProductID:    whopsdk.String("prod_xxxxxxxxxxxxx"),
>     InitialPrice: whopsdk.Float64(10.0),
>     PlanType:     whopsdk.String("one_time"),
> })
> if err != nil {
>     log.Fatal(err)
> }
>
> fmt.Println(variant.PurchaseURL)
> ```
>
> 고객을 `purchase_url`로 리디렉션하여 Whop이 호스팅하는 체크아웃 페이지에서 결제를 완료하도록 합니다.

## 처음부터 끝까지 테스트하기

샌드박스에서 테스트 결제를 실행하고 서버와 대시보드에 도달하는지 확인하세요. [샌드박스 가이드](https://docs.whop.com/ko/developer/guides/sandbox.md)에서 URL 변경 사항을 다루고 모든 결제 결과에 대한 테스트 카드를 제공합니다. 결제가 완료되면 핸들러는 첨부한 `metadata`가 포함된 `payment.succeeded` 이벤트를 받으며, 이를 통해 결제를 자체 주문에 연결할 수 있습니다. 테스트 결제는 샌드박스 대시보드의 **Payments**에도 표시됩니다.

![결제 목록을 보여 주는 샌드박스 대시보드 Payments 페이지](https://mintcdn.com/whop/jU1qiugUa1yCR1I4/images/sandbox-payments-dashboard.png?fit=max\&auto=format\&n=jU1qiugUa1yCR1I4\&q=85\&s=0dac30d4936ad5a412f1ceb5d54d056b)

## 다음 단계

> [card] [웹훅](https://docs.whop.com/ko/developer/guides/webhooks.md)
>
> 결제 이벤트를 실시간으로 처리합니다

> [card] [결제 수단 저장하기](https://docs.whop.com/ko/developer/guides/save-payment-methods.md)
>
> 지금 결제 수단을 저장하고 나중에 결제합니다

> [card] [iOS 결제](https://docs.whop.com/ko/developer/guides/ios/overview.md)
>
> 더 낮은 수수료로 iOS 앱에서 결제를 받습니다

> [card] [결제 수단](https://docs.whop.com/ko/payments-and-billing/local-payment-methods.md)
>
> 195개국에서 100가지 이상의 결제 수단


## Related topics

- [Elements 시작하기](https://docs.whop.com/ko/elements/latest/getting-started.md)
- [일회성 결제 받기](https://docs.whop.com/ko/developer/guides/ios/accept-one-time-payments.md)
- [결제 개요](https://docs.whop.com/ko/developer/payments/overview.md)
