Skip to content

Instantly share code, notes, and snippets.

@top-master
Last active February 16, 2024 21:08
Show Gist options
  • Save top-master/4a5e0e7097d79352770a4fe78ad9a478 to your computer and use it in GitHub Desktop.
Save top-master/4a5e0e7097d79352770a4fe78ad9a478 to your computer and use it in GitHub Desktop.
Testing google pay in countries that do not support it?

Since StackOverflow.com deleted the Q/A at: https://stackoverflow.com/a/77517754/8740349

Let's provide a backup:

Question (by Yossi)

I need to test square payments, using google pay, from a react native application (using google's test environment described here .

Google pay, however, is not available in my country.

Has anyone done this kind of testing?

Answer

I was for a while in a restricted country, hence I tried Google Pay's pre-defined test cards (see docs).

But I can confirm that "restricted country" means preventing that country from getting money, and because developing and/or testing an App which has "In-app purchase" may give you a developer-salary, that is restricted as well.

We worked this around by simply remote controlling a PC (using AnyDesk), which was/is in a non-restricted country (USA for example), then USB-connecting an Android phone to said PC, finally we controlled said Phone through said PC using srccpy.

The issue with this approach is that:

  • The said Phone's owner needs to trust you enough,
  • Well, not that much trust is needed, basically, you could make Phone calls in the name of that remote phone's SIM-card-owner,
  • Simply don't do anything harmful ;-)

Note that above only mentions what worked for us, and NOT all that we tried, basically:

  • Forget VPN because Google checks the SIM-card of your Android device.
  • Forget rooting the device (to patch SIM-card info), because Google checks the Phone number used to create the G-Mail account and/or Google-account (which your Android-device and/or Wallet-app is signed into).

WARNING: AnyDesk is free, nothing is more expensive than free (or something like that was the saying), find another alternative to said remote-control App.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment