Closed cozohar closed 6 years ago
@cozohar, in what browser(s) are you testing?
Closing, as this is a browser issue, not a spec issue.
Nevertheless, with a bit more info we can try to help @cozohar.
If this is Safari: basic-card is not supported, only ApplePay is.
@ianbjacobs in Chrome
In Chrome Desktop, I think you need to be logged into Google itself via the browser... but then again, my understanding is that canMakePayment()
doesn't work the same as in Chrome on Android (where cards a verified against Google Pay).... hence, canMakePayment()
returns false
.
Google folks can give a definitive answer.
I'm using Chrome Desktop. I wasn't logged in, so I did and I cleared cache (made sure the cards are still configured) and I'm still getting false every time.
Are you using a valid ssl cert?
Hi @n3o77 , my SSL cert wasn't valid. Now it works! Thank you so much
Thanks all. I've added a question on this to the FAQ: https://github.com/w3c/payment-request-info/wiki/FAQ#canmakepayment-always-returns-false-why
I welcome suggestions for improving the question and answer.
Ian
Hi, I'm trying to understand why canMakePayment always return false although I have setup a card in the broswer. (When testing locally it always return true).
I configured a Visa test card in Chrome 4111111111111111 and also a real mastercard. I'm attaching the browser console. Am I doing something wrong? Is there a problem maybe?