Checkout/createCnpApplePayMerchantSession
Create Apple Pay merchant session
Perform Apple's merchant validation so the Apple Pay sheet can open.
POST
/api/v1/cnp/public/checkout-sessions/{id}/apple-pay/merchant-sessionBrowser-safeCall from the customer’s browser with a publishable key — never your secret key.
Apple Pay requires the merchant to be validated with Apple before the payment sheet appears. When the browser starts an Apple Pay session it calls this, kepa completes the validation server-side against Apple, and returns the opaque merchant session the browser hands back to Apple.
Path parameters
idstringRequiredCheckout session identifier.
Response
application/json
readybooleanreasonstringmerchantIdstringGood to know
- Only reached in Safari, and only after wallet readiness reports Apple Pay is available.
- Depends on the Apple Pay domain association file being served — see Apple Pay domain association.
- The merchant session is opaque and time-limited; pass it straight to Apple without inspecting it.
createCnpApplePayMerchantSession