支付
一句话: PWA 通过与任何站点相同的 Web 通道收款—— Payment Request API、Google Pay、Apple Pay 以及 Stripe 等服务商 SDK——因此真正的问题是某引擎上有哪些 支付方式 可用,以及 SDK 在已安装的 独立模式下是否正常工作。
| 层 | 示例 | 说明 |
|---|---|---|
| 浏览器 API | Payment Request API | 标准的请求/响应 UI;覆盖因引擎而异。 |
| 钱包 | Google Pay、Apple Pay | Web 上的 Apple Pay 需 Safari + 域名验证;Google Pay 需受支持的场景。 |
| 服务商 SDK | Stripe、Adyen、Braintree、区域通道 | 在任何 PWA 中运行的 JavaScript SDK;部分提供 Payment Request 集成。 |
Payment Request API 支持
Section titled “Payment Request API 支持”Payment Request API 提供一致的、浏览器原生的结账 表单,是可移植性最强的路径。它的支持——以及它能呈现的支付方式(basic-card、Google Pay、 Apple Pay)——在 Chromium、Safari 与 Firefox 之间有所不同。结构化矩阵如下:
| Browser / Platform | Support | Since | Confidence | Source | Notes |
|---|---|---|---|---|---|
| Chrome (Android) | ✅ yes | 61 | high | ref | — |
| Chrome (Desktop) | ✅ yes | 61 | high | ref | — |
| Edge (Desktop) | ✅ yes | 79 | high | ref | — |
| Safari (iOS) | ✅ yes | 11.1 | high | ref | Backed by Apple Pay as the payment method. |
| Safari (macOS) | ✅ yes | 11.1 | high | ref | Backed by Apple Pay. |
| Firefox (Desktop) | ❌ no | — | medium | ref | Implementation shipped then disabled; not available by default. |
| Samsung Internet | ✅ yes | 7.0 | medium | ref | — |
Ecosystem & commercial policy
| Entity | Type | Context | Status | Sponsored | Notes |
|---|---|---|---|---|---|
| Apple Pay | payment_sdk | Safari / iOS | ✅ supported | No | Works in Safari via Payment Request; merchant-domain verification required. |
| Stripe | payment_sdk | Cross-browser | ✅ supported | No | Stripe wraps Payment Request as the Payment Request Button / Payment Element. |
| Google Play billing | store_policy | Google Play TWA | ❌ unsupported | No | TWAs distributing digital goods must use Play Billing, not Payment Request, per Play policy. |
钱包与已安装的独立模式
Section titled “钱包与已安装的独立模式”- Web 上的 Apple Pay 在 Safari 与 iOS 主屏 PWA 中可用,但需要商户域名验证与安全上下文。
- Google Pay 在受支持的 Chromium 场景中可用;当 PWA 以独立方式启动(而非仅在标签页中) 时,请验证它能正确呈现。
- 服务商 SDK(Stripe 等)是普通 JavaScript,可在任何 PWA 中加载,但务必在独立显示模式下 测试其重定向/弹窗流程,因为窗口处理有所不同。
政策结论存放在何处
Section titled “政策结论存放在何处”除原始 API 支持外,商业 立场——哪些支付 SDK 与方式针对 PWA/独立界面被官方支持,连同来源 与验证日期——作为记录维护在政策维度中。本页解释技术栈并链接 能力矩阵;它不复述政策结论,从而保持单一真相来源。
- 为可移植性优先采用 Payment Request API;在不支持处回退到服务商 SDK。
- 为 iOS 主屏安装验证 Apple Pay 域名验证。
- 在 已安装的独立 模式下测试钱包与重定向流程,而不仅是浏览器标签页。
- 查看政策数据获取当前带来源的支持结论。
← 返回生态总览。