Create an Apple Pay session
Apple Pay requires a server-side merchant validation step before the browser can open the payment sheet. Call this when the shopper taps the Apple Pay button, then pass the returned `merchantSession` unchanged to `ApplePaySession.completeMerchantValidation`. Sessions are short-lived, so mint one per payment attempt rather than caching. The `Origin` request header must carry the domain the shopper is paying on, and that domain must be registered with Apple Pay. Google Pay needs no equivalent — it initializes client-side.
Authentication
X-TT-API-Keystring
API Key authentication via header
Headers
X-TT-Platform
Identifies the platform the request comes from.
Allowed values:
Request
This endpoint expects an object.
currency
ISO 4217 currency the shopper will pay in. Selects the merchant account the session is minted for, so Apple Pay must be enabled for this currency.
Response
Apple Pay merchant session.
merchantSession
Opaque, time-limited merchant session issued by Apple. Pass it unchanged to the browser’s ApplePaySession.completeMerchantValidation to open the payment sheet.