> ## 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
> Whop Trends: market data across Whop (revenue, growth, average order value, and customers by industry, product category, and country). Read it with no API key at `GET https://api.whop.com/api/v1/stats/reports/platform_trends`, or through the MCP server operation `get_platform_trends_report`. Guide and use cases: https://docs.whop.com/developer/guides/trends.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.

# Onboard Accounts to Tap to Pay

> Make sure that a Whop account can use Tap to Pay on iPhone. Find the supported countries. Activate Tap to Pay from your server.

Before an account accepts its first Tap to Pay payment, Whop must activate the method for the account. Most integrations do a readiness check when the payment screen opens. If the answer is `needs_onboarding`, they activate Tap to Pay from the server.

## Check readiness

> [tab] In the app
>
> `readiness()` uses the same token as `charge`:
>
> ```swift theme={null}
> let readiness = try await tapToPay.readiness()
>
> switch readiness.status {
> case .active: showChargeButton()
> case .needsOnboarding: askServerToTurnOnTapToPay()
> case .pending: showMessage("Whop is still setting up card payments. Try again later.")
> case .unsupported: showMessage("Tap to Pay isn't available for this business.")
> }
> ```

> [tab] On your server
>
> Call [Retrieve Card Present onboarding](https://docs.whop.com/api-reference/payment-method-types/retrieve-card-present-onboarding.md) with `platform=ios`. The API key or token must have `payment:basic:read` on the account.
>
> ```bash theme={null}
> curl "https://api.whop.com/api/v1/payment_method_types/card_present/onboarding?account_id=biz_xxxxxxxxxxxxx&platform=ios" \
>   -H "Authorization: Bearer $WHOP_API_KEY"
> ```
>
> ```json theme={null}
> {
>   "object": "card_present_onboarding",
>   "status": "needs_onboarding",
>   "platform": "ios",
>   "supported_countries": ["AT", "AU", "BE", "..."]
> }
> ```

| Status | SDK | Meaning | Action |
| - | - | - | - |
| `active` | `.active` | The account can use Tap to Pay. | Charge. |
| `needs_onboarding` | `.needsOnboarding` | The account is eligible, but Tap to Pay is not active. | [Activate it](#turn-it-on). |
| `pending` | `.pending` | Whop enables card payments on the account. | Do the check again later. |
| `unsupported` | `.unsupported` | The account cannot use Tap to Pay on iPhone. | Hide Tap to Pay for this account. |

## Turn it on

Call [Request Card Present onboarding](https://docs.whop.com/api-reference/payment-method-types/request-card-present-onboarding.md) (`POST /payment_method_types/card_present/onboarding`) from your server with the account and the platform. The API key must have `payout:account:update` on the account:

```bash theme={null}
curl -X POST https://api.whop.com/api/v1/payment_method_types/card_present/onboarding \
  -H "Authorization: Bearer $WHOP_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "account_id": "biz_xxxxxxxxxxxxx", "platform": "ios" }'
```

The response is the same onboarding object as the readiness check, with the new `status` of the account. If the account was `needs_onboarding`, the new status is `active` or `pending`.

> [!NOTE]
>
> Keep this call on your server. The token that you give the app has only `payment:charge` and `payment:basic:read`. Do not add `payout:account:update` to it.

> [accordion] Why the request can fail
>
> * The account is not eligible. First, make sure that the readiness status is `needs_onboarding`.
> * The account cannot collect card payments. Complete the payments setup of the account on Whop. Then try again.
> * The API key does not have `payout:account:update` on the account.

## Supported countries

Tap to Pay on iPhone is available for accounts with a business address in one of these countries:

| | | | |
| - | - | - | - |
| Australia (`AU`) | Austria (`AT`) | Belgium (`BE`) | Bulgaria (`BG`) |
| Canada (`CA`) | Croatia (`HR`) | Cyprus (`CY`) | Czechia (`CZ`) |
| Denmark (`DK`) | Estonia (`EE`) | Finland (`FI`) | France (`FR`) |
| Germany (`DE`) | Hungary (`HU`) | Ireland (`IE`) | Italy (`IT`) |
| Latvia (`LV`) | Lithuania (`LT`) | Luxembourg (`LU`) | Malta (`MT`) |
| Netherlands (`NL`) | Norway (`NO`) | Poland (`PL`) | Portugal (`PT`) |
| Romania (`RO`) | Slovakia (`SK`) | Slovenia (`SI`) | Spain (`ES`) |
| Sweden (`SE`) | United Kingdom (`GB`) | United States (`US`) | |

This list changes when Whop adds new countries. Do not put the list in your code. Read it at runtime from `readiness().supportedCountries` or `supported_countries`. Whop uses the country of the business address of the account, not the location of the iPhone.

## Next steps

> [card] [Accept payments](https://docs.whop.com/tap-to-pay/accept-payments.md)
>
> Accept the first payment of the account.

> [card] [Go live](https://docs.whop.com/tap-to-pay/go-live.md)
>
> The checklist to complete before you release your app.


## Related topics

- [Tap to Pay SDK Reference](https://docs.whop.com/tap-to-pay/reference.md)
- [Build the Tap to Pay Payment Screen](https://docs.whop.com/tap-to-pay/payment-screen.md)
- [Getting Started with Tap to Pay](https://docs.whop.com/tap-to-pay/getting-started.md)
