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:
- I am outside the US (I need to develop this for some customers in the US)
- I am doing everything "network related" through a VPN pointing to the US (that is how I installed the Android Pay app too, otherwise it would not show up in the PlayStore for download).
- I am faking my GPS coordinates to be inside the US.
- I don't have a SIM card on my phone.
- I am using
WalletConstants.ENVIRONMENT_TEST
, but I have also tried with the deprecatedWalletConstants.ENVIRONMENT_SANDBOX
andWalletConstants.ENVIRONMENT_STRICT_SANDBOX
without success. - I've added a genuine Discover credit card from the US to the Android Pay app.
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.