## 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

- [Install the Google Wallet app and add a payment method](https://support.google.com/pay/answer/6289372).
- Adhere to our [Google Pay API Acceptable Use Policy](https://payments.developers.google.com/terms/aup) and the [Google Play developer policy](https://play.google.com/about/monetization-ads/payments/).

> [!CAUTION]
> If either of the following criteria apply to you, use [Google Play In-app Billing](https://developer.android.com/google/play/billing/index.html)
> to implement a payment button in your app:
>
> - Google processes payments for you.
> - You sell digital goods, such as movies or games.

## Configure your app

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

### App dependencies

Add the [Google Play services](http://developer.google.com/android)
dependency for the Google Pay API to your [module's Gradle build file](https://developer.android.com/studio/build#module-level)
(typically `app/build.gradle` or `app/build.gradle.kts`):

### Groovy

```yaml
dependencies {
    implementation 'com.google.android.gms:play-services-wallet:20.0.0'
}
```

### Kotlin

```yaml
dependencies {
    implementation("com.google.android.gms:play-services-wallet:20.0.0")
}
```

When you're ready to go live, refer to [Publish your integration](https://developers.google.com/pay/api/android/guides/test-and-deploy/publish-your-integration.md.txt) for important information.