Search code examples
androidgoogle-chromeandroid-webviewstripe-paymentsgoogle-pay

Android Chrome Webview access to Google Pay is not working


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.


Solution

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