Validate your merchant identity and receive a session object for each payment request.
- Apple Pay JS
As soon as the payment sheet is displayed, the Apple Pay JS API calls your session object’s
onvalidatemerchant event handler to verify that the request is coming from a valid merchant. It passes the function an
Apple object that contains the validation URL.
You call your server, passing it the URL from the event’s
Your server uses the validation URL to request a session from the Apple Pay server, as described in Requesting an Apple Pay Payment Session.
In response, your server receives an opaque merchant session object, MerchantSession.
You pass the merchant session object to your Apple Pay session’s