更新时间:2023-12-04 21:19:16
我遇到了类似的问题,ApplePaySession.canMakePaymentsWithActiveCard(merchantIdentifier)
在承诺中没有返回 true
.
I had similar issues with ApplePaySession.canMakePaymentsWithActiveCard(merchantIdentifier)
not returning true
in the promise.
使用 ApplePaySession.canMakePayments()
相反,当您在 macOS Safari 上满足您为沙盒用户提到的各种条件(配对、iCloud 等)时,确实返回了 true
,付款可以通过 iPhone 和 Apple Watch 成功处理.
Using ApplePaySession.canMakePayments()
instead did return true
when the various conditions you mention for a sandbox user (pairing, iCloud etc.) were met on macOS Safari, and payments could be successfully handled with hand-off to iPhone and Apple Watch.
当然***确定是什么让 ApplePaySession.canMakePaymentsWithActiveCard(merchantIdentifier)
在 macOS 上似乎没有返回 true
.它似乎在 iOS 上运行良好.
It would of course be good to determine what the missing thing is that makes ApplePaySession.canMakePaymentsWithActiveCard(merchantIdentifier)
seemingly not return true
on macOS. It seems to work fine on iOS.