I am trying to run the Android Pay sample app (https://github.com/android-pay/androidpay-quickstart), but keep getting error messages. Here are they:
A pop-up with title "Not available here" and message saying "This card isn't available with Android Pay in this app. Please try a different card."
When you press "Ok" in that pop-up, you can see the other error message:
"Unrecognized app. Please make sure that you trust this app before proceeding":
And before anyone asks, yes, I have followed the instructions on github to generate the keys and put the Base64 version of the public key inside ids.xml.
Here is my environment:
WalletConstants.ENVIRONMENT_TEST
, but I have also tried with the deprecated WalletConstants.ENVIRONMENT_SANDBOX
and WalletConstants.ENVIRONMENT_STRICT_SANDBOX
without success.I did noticed, however, that if I check the details of the Discover card I am using on the Android Pay app, the option "Change Google payments PIN" is there:
and, according to this link, if you see the message "Change Google payments PIN" then your card is not yet supported. However, this goes against the error messages above. They seem to indicate another problem.
Does anybody have any clue? The same error messages appear to me when I try to implement Android Pay in my own app.
It turns out the card I was using was the problem. I tried with a different card and now it works. It looks like Google allows you to enter not yet supported cards so they can let you know once they are supported.
The error messages are confusing and don't give any indication that the problem is with the card.