androidandroid-pay

Android Pay - Sample app not working ("Not available here")


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."

enter image description here

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":

enter image description here

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:

  1. I am outside the US (I need to develop this for some customers in the US)
  2. 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).
  3. I am faking my GPS coordinates to be inside the US.
  4. I don't have a SIM card on my phone.
  5. I am using WalletConstants.ENVIRONMENT_TEST, but I have also tried with the deprecated WalletConstants.ENVIRONMENT_SANDBOX and WalletConstants.ENVIRONMENT_STRICT_SANDBOX without success.
  6. 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:

enter image description here

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.


Solution

  • 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.