HTTPS Safari 暴露 ApplePaySession
Authentic macOS and iOS Safari sessions over HTTPS expose window.ApplePaySession, while native Mac Chrome and Firefox are cleared by human interaction.
BotRefund probes window.ApplePaySession, canMakePayments(), and API versions 1 through 16 on profiles claiming macOS or Safari.
On browsers whose User-Agent indicates macOS or Safari, the Apple environment probe checks whether ApplePaySession exists on window, safely invokes canMakePayments(), and checks ApplePaySession.supportsVersion() across versions 1 through 16.
The detector flags cases where a session claims macOS or Safari yet ApplePaySession is completely absent from the window environment.
Linux containers spoofing macOS Safari or iOS Safari user agents in headless Chromium or Playwright cannot instantiate Apple's proprietary PaymentKit bridge, leaving ApplePaySession undefined.
Important caveat: genuine desktop Chrome and Firefox on macOS—as well as real Safari over unencrypted http:// pages—also omit ApplePaySession. Because of those legitimate exceptions, this signal never blocks alone and yields whenever human interaction is verified.
Authentic macOS and iOS Safari sessions over HTTPS expose window.ApplePaySession, while native Mac Chrome and Firefox are cleared by human interaction.
Claiming macOS or Safari while lacking window.ApplePaySession suggests non-Apple container spoofing unless verified human behavior overrides it.
Forensic significance: Supporting platform consistency check for spotting spoofed Safari containers on non-Apple hosts; requires corroboration because native macOS Chrome/Firefox and plain HTTP Safari legitimately omit ApplePaySession.