Skip to main content

How to Enable Google Pay in Android WebView: A Developer's Guide

Google for DevelopersJuly 2, 20252 min7,352 views
2 connections·3 entities in this video→

Integrating Google Pay into Android WebViews

  • πŸš€ This guide explains how to enable Google Pay within Android WebViews for a seamless payment experience.
  • πŸ’‘ Users can purchase using Google Pay with device tokens from their Google Wallet, offering a native Android experience.

Technical Implementation Steps

  • πŸ’» Add the Android X. WebKit dependency to your project, ensuring the version is higher than 1.14.0.
  • ⚠️ Test on a device with Chrome 137+ and Google Play Services version 25.18.30+.
  • βš™οΈ Adjust your Android Manifest to permit Chromium-defined actions like 'Pay is ready to pay' and 'Update payment details'.
  • 🌐 Enable the Payment Request API for your WebView using the webSettings.setJavaScriptEnabled(true) directive from the WebKit dependency.

Benefits and Next Steps

  • βœ… Offering Google Pay in WebViews increases checkout speed and improves user experience.
  • πŸ”‘ Your application must be approved in the Pay and Wallet Console and await support team approval before production use.
  • πŸ’¬ For questions, join the official Google Pay and Wallet developer community on Discord in the #payments channel.
Knowledge graph3 entities Β· 2 connections

How they connect

An interactive map of every person, idea, and reference from this conversation. Hover to trace connections, click to explore.

Hover Β· drag to explore
3 entities
Chapters2 moments

Key Moments

Transcript11 segments

Full Transcript

Topics12 themes

What’s Discussed

Google PayAndroid WebViewPayment IntegrationAndroidX WebKitPayment Request APIGoogle WalletDevice TokensAndroid ManifestCheckout SpeedUser ExperienceDeveloper CommunityDiscord
Smart Objects3 Β· 2 links
ProductsΒ· 2
ConceptΒ· 1