【发布时间】:2021-04-05 04:24:29
【问题描述】:
我正在考虑将 Apple Pay 集成到我的结帐页面中。如何通过验证 ApplePaySession 类是否存在来检查 Apple Pay JS API 在浏览器中是否可用。
当我给出条件时,
if (window.ApplePaySession && ApplePaySession.canMakePayments()){}
它显示错误,即; "Property 'ApplePaySession' does not exist on type 'Window & typeof globalThis'".
【问题讨论】:
标签: angular applepay applepayjs