ApplePay canMakePaymentsWithActiveCard . Promise returns false on Mac Safari, but true for iPhone Safari. canMakePayments returns true for both. I am using the Apple Sandbox developer account with the test credit cards that Apple provided. Any idea why canMakePaymentsWithActiveCard returns false on Mac Safari?
if (window.ApplePaySession) {
var merchantIdentifier = 'my unique identifier';
var promise = ApplePaySession.canMakePaymentsWithActiveCard(merchantIdentifier);
promise.then(function (canMakePayments) {
if (canMakePayments)
});
}
source
share