A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.google.com/pay/api/android/guides/setup below:

Set up Google Pay API | Google Pay API for Android

Set up Google Pay API

Stay organized with collections Save and categorize content based on your preferences.

Before you begin

To prepare your app, complete the steps in the following sections.

App prerequisites

To use the Google Pay API on Android, your app must be:

Set up your app and your Google Pay account

If either of the following criteria apply to you, use Google Play In-app Billing to implement a payment button in your app:

Configure your app

To configure your app, complete the steps in the following sections.

App dependencies

Add the Google Play services dependency for the Google Pay API to your module's Gradle build file (typically app/build.gradle or app/build.gradle.kts):

Groovy
dependencies {
    implementation 'com.google.android.gms:play-services-wallet:19.4.0'
}
Kotlin
dependencies {
    implementation("com.google.android.gms:play-services-wallet:19.4.0")
}

When you're ready to go live, refer to Publish your integration for important information.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-08-14 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-14 UTC."],[[["To use the Google Pay API, your Android app must be distributed through the Google Play Store and built with a `minSdkVersion` of 21 or higher and a `compileSdkVersion` of 34 or higher."],["Before integrating, ensure you have the Google Wallet app installed, add a payment method, and comply with the Google Pay API Acceptable Use Policy and Google Play Developer Policy."],["Implement payments using Google Play In-app Billing if Google processes payments for you or if you sell digital goods."],["Integrate the Google Pay API by adding the necessary dependency to your app's Gradle build file and enabling it in your `AndroidManifest.xml` file."],["To go live, consult the publishing guide for essential information after completing the integration process."]]],["To utilize the Google Pay API, ensure your app is on the Google Play store and meets `minSdkVersion` 21 and `compileSdkVersion` 34 or higher. Install the Google Wallet app with a payment method. If Google processes payments or you sell digital goods, use Google Play In-app Billing. Add the `com.google.android.gms:play-services-wallet:19.4.0` dependency to your module's Gradle file. In your `AndroidManifest.xml`, enable the API with the `meta-data` element: `com.google.android.gms.wallet.api.enabled` with a value of `true`.\n"]]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4