Before you begin
- Use a platform secret key with
sessions:write,web_domains:read, andweb_domains:writefor the mode you are working in. In Connect → API keys, the Payments integration preset includes them. - Each merchant’s connection must grant
sessions:write, andsessions:readto list domains. Access to create a merchant’s checkout sessions also lets you register where they run, so merchants approve nothing extra.
Ionic-Account.
1. Register the merchant’s website
Register the origin of the page where the merchant’s customers pay. Do this once per merchant and mode, for example right after the merchant connects.2. Create a checkout session for the merchant
id, client_secret, and embed_url to the merchant’s
page and mount it as described in
embedded checkout. The frame loads only on a
website registered for the session’s merchant. If your page sends a Content
Security Policy, add the checkout entries.
Add Apple Pay
-
Download the verification file from
https://app.ionicfi.com/.well-known/apple-developer-merchantid-domain-association. The same file serves every domain. -
Serve it unchanged on the merchant’s site at
https://clinic-a.your-platform.com/.well-known/apple-developer-merchantid-domain-association. Return HTTP 200 directly, with no redirect or login. -
Register the domain for Apple Pay with the merchant’s account:
Check
apple_pay.statusin the response. Afailedstatus comes with anapple_pay.errorthat says what to fix. -
Pass
applePay: truewhen you mount checkout, and add the Apple Pay policy entries if your page sends a Content Security Policy.
Manage the merchant’s domains
GET /v1/web_domainswithIonic-Accountlists only the domains your platform added for that merchant.DELETE /v1/web_domains/{id}removes one. A domain registered for Apple Pay is deregistered first.- The merchant sees these domains in its dashboard, marked with your platform, and can remove them.
- When the connection is suspended or ends, the domains your platform added stop working immediately and checkout no longer loads on them. They work again if a suspended connection is restored.
Ionic-Account.

