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

# Tap to Pay Go-Live Checklist

> The items to examine before you send a Tap to Pay app to the App Store: entitlement, Info.plist, tokens, environment, onboarding, and errors.

Before you submit a build that accepts Tap to Pay payments in production, examine each item on this list.

## Apple

* Apple gave your team the Tap to Pay on iPhone entitlement for distribution, not only for development. Refer to [Request the entitlement](https://docs.whop.com/tap-to-pay/entitlement.md#request-the-distribution-entitlement).
* In the entitlements file of the app target, `com.apple.developer.proximity-reader.payment.acceptance` is `true`. Your distribution provisioning profile includes this entitlement.
* Your app shows the feature as the Apple guidelines for Tap to Pay on iPhone tell you.

## App configuration

* Info.plist has `NSBluetoothAlwaysUsageDescription` and `NSLocationWhenInUseUsageDescription`. The text of each key is clear to your sellers.
* The app asks for When In Use location permission before the first charge.
* Your app uses a released version of `WhopTTP`. You did not add a different version of `WhopTTPCore`.
* There is no API key in the app bundle, its configuration files, or its build settings.

## Server

* Your token endpoint uses a production API key. It calls `https://api.whop.com/api/v1/access_tokens`.
* Tokens have only `payment:charge` and `payment:basic:read`, for the account of the seller.
* The token endpoint uses your login. It makes sure that the signed-in person has permission to sell for that account.
* Calls that activate Tap to Pay with `payout:account:update` run only on your server.

## SDK setup

* `TapToPay` uses `.production`. You give `.production`, or you do not give `environment`.
* The `accountID` is the same as the `account_id` of your tokens.
* You call `readiness()`. Your app has an action for each status, also for `.unsupported`.
* You hide Tap to Pay when `isSupported` is `false`.

## Payment flow

* After `readiness()` is `.active`, you call `prepare()` when the app starts. You also call it each time that the app comes back to the foreground.
* On each device, an administrator accepts the Apple terms during `prepare()`, before the first sale.
* You disable the charge button while `isBusy` is `true`.
* The seller can cancel while `phase` is `.waitingForCard`.
* You show a clear message for each `TapToPayError` code. You record `code`, `underlyingCode`, and `paymentID`.
* For `.outcomeUnknown`, you examine the payment before you let the seller charge again.
* You make custom amounts from strings or integers, not from `Double`.
* You did a real charge on a production account with a real card. Then you refunded it.

## Next steps

> [card] [Troubleshooting](https://docs.whop.com/tap-to-pay/troubleshooting.md)
>
> Solutions for frequent problems after the release.

> [card] [Refunds and disputes](https://docs.whop.com/developer/guides/refunds-and-disputes.md)
>
> Refund Tap to Pay payments as you refund other Whop payments.


## Related topics

- [Request the Tap to Pay on iPhone Entitlement](https://docs.whop.com/tap-to-pay/entitlement.md)
- [Onboard Accounts to Tap to Pay](https://docs.whop.com/tap-to-pay/onboarding.md)
- [Tap to Pay SwiftUI Example](https://docs.whop.com/tap-to-pay/example-app.md)
