canMakePaymentsWithActiveCard returns true when there is no card in Wallet

Hi,


I am implementing apple pay in web and I want to show Apple Pay setup button when there is no card in the wallet or user has not signed in icloud.


Now, I am stuck with ApplePaySession.canMakePayments(['visa', 'masterCard', 'amex']) and ApplePaySession.canMakePaymentsWithActiveCard('merchant.name') methods.


Both methods are returning true even when there is no card in wallet.


I testing this on Mac os Mojave 10.14.6 with sandbox account with sandbox cards.


please help!


thanks

Replies

Experiencing the same issue. Can even reproduce it right in Desktop Safari via Debugger (it doesn't make any sense cause no wallet set up on Desktop):

window.ApplePaySession.canMakePaymentsWithActiveCard(merchantIdentifier).

then(canMakePayments => {

console.log(canMakePayments ? 'eligible' : 'not eligible');

}).catch(() => {

console.log('not eligible');

});

Pass your merchantId, run in Safari console and you'll get "eligible" message, which is wrong.

@HenrySherman could you please support us with the issue?