Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Chrome Webview access to Google Pay is not working

Tags:

Trying to integrate Google Pay (via Stripe) in our App. On Android 7.0, the native chrome browser is able to get access to the Google Pay data and display the stored cards in G-pay But when we try to access the same from inside the Chrome Webview we are launching as part of a test Android App, it is unable to fetch the G-pay data.

Is it a limitation or a bug?

Any pointers appreciated.

like image 869
Anshuman Manral Avatar asked Apr 26 '19 13:04

Anshuman Manral


People also ask

Why Google Pay is not working?

Google Pay might not work in stores with phones that: Run developer versions of Android. Are rooted, run a custom ROM, or have modified factory software. Due to security risks, Google Pay doesn't run on these phones.

How do I enable Google Pay in my browser?

Set Up Google Pay From the WebOn the website, click the Add button to enter a payment method. You can opt to add a credit or debit card, a bank account, or a Google Store financing card. Select your desired option and fill out the necessary information. Click the Save button and then select Done.

Can I use Google Pay on Chrome?

When you're signed in to Chrome and you enter your payment method into an online form, Chrome may ask if you want to save your payment info in Google Pay. If you accept, your payment information is saved in Google Pay.

Does Chrome use Android WebView?

No, Chrome for Android is separate from WebView. They're both based on the same code, including a common JavaScript engine and rendering engine.


1 Answers

If you want to use Google Pay via a mobile app, you should use a native implementation, such as that offered by Stripe, or use a browser intent from your Android app to open the mobile Chrome browser

Just as a note, something similar happens with Apple Pay; Apple allows you to use a native implementation in an app, or web-based Apple Pay with mobile Safari or SFSafariViewController, but not more restrictive web views.

like image 174
duck Avatar answered Oct 03 '22 14:10

duck