• About Us
  • Privacy Policy
  • Disclaimer
  • Contact Us
TechTrendFeed
  • Home
  • Tech News
  • Cybersecurity
  • Software
  • Gaming
  • Machine Learning
  • Smart Home & IoT
No Result
View All Result
  • Home
  • Tech News
  • Cybersecurity
  • Software
  • Gaming
  • Machine Learning
  • Smart Home & IoT
No Result
View All Result
TechTrendFeed
No Result
View All Result

Including assist for Google Pay inside Android WebView

Aarav Kapoor by Aarav Kapoor
June 9, 2025
Home Software
Share on FacebookShare on Twitter


Does your Android App embed an online checkout course of through the use of a WebView?

We’re glad to announce that Google Pay is now supported inside Android WebView. This characteristic is on the market in WebView beginning with model 137.


How does Google Pay inside Android WebView work?

The answer makes use of the Fee Request API which permits launching Android fee apps when the web site is embedded within a WebView.

Beginning with Google Play Companies 25.18.30 (accessible immediately), Google Pay will set off the native fee sheet which implies person system tokens might be accessible for facilitation when triggered from inside a WebView.


What adjustments are required for my App?

Because the Fee Request API might be disabled by default for WebView, the next easy adjustments must be carried out:

Add (or replace) construct dependency:

androidx.webkit:webkit:1.14.0

Kotlin

Add the next queries tags to your AndroidManifest.xml:

Allow the Fee Request API for the WebView you employ in your App. Be certain to make use of the proper import assertion. No different Google Pay particular adjustments are wanted.

Kotlin (Compose):

import android.webkit.WebSettings;
import android.webkit.WebView;
import androidx.webkit.WebSettingsCompat;
import androidx.webkit.WebViewFeature;

AndroidView(
    manufacturing facility = {
        WebView(it).apply {
            // Replace WebView settings to permit JavaScript and fee request 
            settings.javaScriptEnabled = true            
            if (WebViewFeature.isFeatureSupported(
                    WebViewFeature.PAYMENT_REQUEST)) {
                WebSettingsCompat.setPaymentRequestEnabled(settings, true);
            }
        }
    },
    replace = {
      it.loadUrl(url)
    }
)

Kotlin

import android.webkit.WebSettings;
import android.webkit.WebView;
import androidx.webkit.WebSettingsCompat;
import androidx.webkit.WebViewFeature;

WebView webView = findViewById(R.id.webview);
WebSettings webSettings = webView.getSettings();

// Replace WebView settings to permit JavaScript and fee request
webSettings.setJavaScriptEnabled(true);
if (WebViewFeature.isFeatureSupported(WebViewFeature.PAYMENT_REQUEST)) {
    WebSettingsCompat.setPaymentRequestEnabled(webSettings, true);
}

Java

An approved Android app integration

An accepted Android app integration

Unlock seamless funds in your Android App

Supporting Google Pay inside Android WebView permits you to supply Google Pay to your Android customers when embedding your net checkout in your app. For extra help together with your implementation, register to the Google Pay & Pockets Console to create a assist ticket. As well as, you may be part of the developer neighborhood within the #funds channel on Discord.

Observe @GooglePayDevs on X for future updates. When you’ve got questions, tag @GooglePayDevs and embody #AskGooglePayDevs in your tweets.



Tags: AddingAndroidGooglePaysupportWebView
Aarav Kapoor

Aarav Kapoor

Aarav Kapoor covers the latest in technology, gadgets, cybersecurity, software and smart home trends for TechTrendFeed. He breaks down complex tech news into clear, practical insights for everyday readers.

Next Post
As Xbox Sport Costs Rise, a Sport Go Subscription Appears to be like Higher Than Ever

As Xbox Sport Costs Rise, a Sport Go Subscription Appears to be like Higher Than Ever

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Trending.

KV Cache Administration: PagedAttention & RadixAttention

KV Cache Administration: PagedAttention & RadixAttention

August 23, 2026
Genetec Safety Heart SaaS Capabilities Increase to Embrace Third-Get together Analytics

Genetec Safety Heart SaaS Capabilities Increase to Embrace Third-Get together Analytics

June 16, 2025
The highly-anticipated follow-up to Baldur’s Gate 3 is extra Divinity, nevertheless it’s not technically Unique Sin 3

The highly-anticipated follow-up to Baldur’s Gate 3 is extra Divinity, nevertheless it’s not technically Unique Sin 3

December 13, 2025
Residence Candy Residence’ iOS Evaluate – A Nice Begin, however Wants Extra Work – TouchArcade

Residence Candy Residence’ iOS Evaluate – A Nice Begin, however Wants Extra Work – TouchArcade

March 14, 2026
Progress Software program unveils RAG-as-a-Service platform

Progress Software program unveils RAG-as-a-Service platform

September 15, 2025

TechTrendFeed

Welcome to TechTrendFeed, your go-to source for the latest news and insights from the world of technology. Our mission is to bring you the most relevant and up-to-date information on everything tech-related, from machine learning and artificial intelligence to cybersecurity, gaming, and the exciting world of smart home technology and IoT.

Categories

  • Cybersecurity
  • Gaming
  • Machine Learning
  • Smart Home & IoT
  • Software
  • Tech News

Recent News

Elevate Your Modern Home with LED Rose Lamps and West Elm Decor Ideas of 2026 – Chefio

Elevate Your Modern Home with LED Rose Lamps and West Elm Decor Ideas of 2026 – Chefio

September 16, 2026
Deltarune Creator Reveals The Worst Thing He’s Ever Made

Deltarune Creator Reveals The Worst Thing He’s Ever Made

September 16, 2026
  • About Us
  • Privacy Policy
  • Disclaimer
  • Contact Us

© 2025 https://techtrendfeed.com/ - All Rights Reserved

No Result
View All Result
  • Home
  • Tech News
  • Cybersecurity
  • Software
  • Gaming
  • Machine Learning
  • Smart Home & IoT

© 2025 https://techtrendfeed.com/ - All Rights Reserved