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:
Distributed through the Google Play store.
Built using the following configuration:
A minSdkVersion of 23 or higher
A compileSdkVersion of 34 or higher
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:
Google processes payments for you.
You sell digital goods, such as movies or games.
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:20.0.0'
}
Kotlin
dependencies {
implementation("com.google.android.gms:play-services-wallet:20.0.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 2026-09-01 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 2026-09-01 UTC."],[],[]]