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

# Apple Pay en Google Pay inschakelen

> Host het Apple Pay-verificatiebestand en registreer je domein zodat Apple Pay en Google Pay werken in Whop Elements op je site.

Met Apple Pay en Google Pay kunnen klanten betalen vanuit de wallet die al op hun apparaat staat. Wanneer een checkout- of betalingselement van [Whop Elements](https://docs.whop.com/nl/elements/latest/getting-started.md) op je eigen site wordt weergegeven, vereisen beide wallets dat Apple Pay gereed is op het domein van de pagina. Eén domein waarop Apple Pay gereed is, maakt beide wallets beschikbaar voor elk element op die pagina.

> [!NOTE]
>
> Domeinverificatie is alleen vereist voor pagina's die je zelf host. Door Whop gehoste checkoutpagina's
> en whop.com zijn al goedgekeurd.

## Vereisten

Controleer voordat je Apple Pay instelt of je beschikt over:

* Een domein waarop je Whop Elements koppelt
* De mogelijkheid om een bestand op dat domein te hosten (om het Apple Pay-verificatiebestand aan te bieden)

## Zelf gehoste verificatie

Om je domein te verifiëren, bied je het Apple Pay merchant ID domain association-bestand aan op een specifiek pad op je domein en registreer je daarna het domein bij Whop.

### Stap 1: Download het verificatiebestand

Download het [Apple Pay-verificatiebestand](https://whop.com/.well-known/apple-platform-integrator/apple-developer-merchantid-domain-association).

### Stap 2: Host het bestand

Host dit bestand op het volgende pad op je domein:

```
https://<your-domain>/.well-known/apple-developer-merchantid-domain-association
```

Het bestand moet:

* Via HTTPS worden aangeboden
* Toegankelijk zijn zonder authenticatie
* Met de juiste inhoud worden aangeboden (zonder wijzigingen)

> [tab] Next.js
>
> Plaats het bestand in je `public`-map:
>
> ```
> public/
> └── .well-known/
>     └── apple-developer-merchantid-domain-association
> ```

> [tab] Nginx
>
> Voeg een location-blok toe om het bestand aan te bieden:
>
> ```nginx theme={null}
> location /.well-known/apple-developer-merchantid-domain-association {
>     alias /path/to/apple-developer-merchantid-domain-association;
>     default_type application/octet-stream;
> }
> ```

> [tab] Vercel
>
> Maak een `vercel.json` met een rewrite-regel die doorverwijst naar het bestand dat op whop.com wordt gehost:
>
> ```json theme={null}
> {
>   "rewrites": [
>     {
>       "source": "/.well-known/apple-developer-merchantid-domain-association",
>       "destination": "https://whop.com/.well-known/apple-platform-integrator/apple-developer-merchantid-domain-association"
>     }
>   ]
> }
> ```

> [tab] Cloudflare Pages
>
> Plaats het bestand in je uitvoermap:
>
> ```
> dist/
> └── .well-known/
>     └── apple-developer-merchantid-domain-association
> ```

### Stap 3: Controleer de toegang tot het bestand

Test of je het bestand kunt openen door naar deze URL te gaan:

```
https://<your-domain>/.well-known/apple-developer-merchantid-domain-association
```

Het bestand moet zonder fouten worden gedownload of de inhoud ervan moet worden weergegeven.

### Stap 4: Registreer je domein

Registreer het domein vanuit het dashboard of via de API. In beide gevallen controleert Whop of het bestand bereikbaar is voordat het domein bij Apple wordt geregistreerd.

> [tab] Dashboard
>
> Open **Websites** in je dashboard en selecteer het domein. Selecteer **Fix Apple Pay**, volg de stappen en selecteer daarna **Check now**.

> [tab] API
>
> Voeg het domein met Apple Pay toe via de [Domains API](https://docs.whop.com/nl/api-reference/domains/domain). Als je account het domein al heeft, [werk het dan bij](https://docs.whop.com/nl/api-reference/domains/update-domain.md) met `apple_pay: {}`. Je API-sleutel heeft de machtiging `domain:manage` nodig.
>
> ```typescript TypeScript theme={null}
> import { WhopClient } from "@whop/sdk";
>
> const client = new WhopClient({ token: process.env.WHOP_API_KEY });
>
> const domain = await client.domains.create({
>   domain: "shop.example.com",
>   apple_pay: {},
> });
>
> console.log(domain.apple_pay?.state); // "pending" while Whop registers the domain with Apple
> ```
>
> ```python Python theme={null}
> import os
> from whop_sdk import Whop
>
> client = Whop(token=os.environ["WHOP_API_KEY"])
>
> domain = client.domains.create(domain="shop.example.com", apple_pay={})
>
> print(domain.apple_pay.state)  # "pending" while Whop registers the domain with Apple
> ```
>
> Whop registreert het domein op de achtergrond bij Apple. [Haal het domein op](https://docs.whop.com/nl/api-reference/domains/retrieve-domain.md) totdat `apple_pay.state` de waarde `ready` heeft, of `action_required` wanneer Apple het bestand niet kon ophalen. Zodra je het bestand host, registreer je een domein met `action_required` opnieuw met [Check Domain](https://docs.whop.com/nl/api-reference/domains/check-domain.md):
>
> ```typescript TypeScript theme={null}
> await client.domains.check({ id: domain.id });
> ```
>
> ```python Python theme={null}
> client.domains.check(id=domain.id)
> ```
>
> De Domains API vervangt de verouderde Payment Method Domains API. De [API-changelog](https://docs.whop.com/nl/developer/api/versioning.md) koppelt elk van de bijbehorende verzoeken aan de Domains API.

## Probleemoplossing

> [accordion] De knop voor Apple Pay of Google Pay verschijnt niet
>
> * Zorg ervoor dat je domein als geverifieerd wordt weergegeven in **Payment domains** of `apple_pay.state: "ready"` teruggeeft vanuit de [Domains API](https://docs.whop.com/nl/api-reference/domains/retrieve-domain.md).
> * Het [ExpressCheckoutElement](https://docs.whop.com/nl/elements/latest/checkout/expressCheckout.md) toont alleen de wallets waarmee het apparaat van de koper kan betalen, en toont niets als er geen wallet beschikbaar is. Test Apple Pay in Safari op een echt Apple-apparaat, niet in een simulator.
> * Als je **Framer** gebruikt, laad het Elements-script dan via Custom Code in de headers van je site, niet via de Embed-component. De Embed-component van Framer gebruikt een `srcdoc`-iframe, die Safari als een onveilige context behandelt en waarin Apple Pay wordt geblokkeerd.

> [accordion] Zelf gehost bestand geeft 404 terug
>
> * Controleer of het bestand op de juiste locatie staat:
>   `/.well-known/apple-developer-merchantid-domain-association`.
> * Controleer of je webserver bestanden zonder extensie aanbiedt.
> * Zorg ervoor dat je hostingconfiguratie de map `.well-known` niet blokkeert.

## Volgende stappen

> [card] [Express Checkout](https://docs.whop.com/nl/developer/guides/express-checkout.md)
>
> Voeg Apple Pay- en Google Pay-knoppen voor betalen met één druk toe aan je site

> [card] [Checkoutlinks](https://docs.whop.com/nl/payments/create-checkout-link.md)
>
> Maak deelbare checkoutlinks voor je producten


## Related topics

- [Open een wallet-sheet vanuit je eigen knop](https://docs.whop.com/nl/developer/guides/payment-request.md)
- [Express Checkout toevoegen](https://docs.whop.com/nl/developer/guides/express-checkout.md)
- [Aan de slag met Elements](https://docs.whop.com/nl/elements/latest/getting-started.md)
