ApplePay 扩展
5.
文档
static boolean canMakePayments();
function isSupportApplePay() {
let isCanMakeApplePayFlag = !!window?.ApplePaySession
if (window?.ApplePaySession) {
try {
// 判断是否支持applepay
isCanMakeApplePayFlag = ApplePaySession.canMakePayments()
} catch (error) {
isCanMakeApplePayFlag = false
}
}
}
修改于 2024-09-06 02:16:34