botrefund.com
← BotRefund 首页 浏览器与设备信号

Apple Pay API 可用性

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.

说明

如何解读结果

01 预期结果

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.

Example result Claimed profile: Safari on macOS • ApplePaySession: present (max v14) — Result: consistent Apple payment API
02 可能的自动化信号

声称 macOS 或 Safari 时缺少 ApplePaySession

Claiming macOS or Safari while lacking window.ApplePaySession suggests non-Apple container spoofing unless verified human behavior overrides it.

Example result Claimed profile: Safari on macOS • ApplePaySession: absent — Result: possible Apple environment mismatch

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.