> ## Documentation Index
> Fetch the complete documentation index at: https://docs.crossmint.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Pay

> Enable Google Pay in the onramp embedded checkout on web and Android

This guide covers how to show Google Pay in the onramp embedded checkout. The user confirms the payment through the Google Pay sheet with a card stored in Google Wallet instead of typing card details.

## Availability

| Platform | Setup |
| :- | :- |
| Web browsers | None |
| React Native (Android) | Expo plugin and a native rebuild |
| Native Android (Kotlin) | Query intents in `AndroidManifest.xml` |
| Flutter (Android) | See the [Flutter quickstart](https://docs.crossmint.com/onramp/quickstarts/flutter.md) |

In production, Google must approve your Android app before Google Pay is shown to real users. See [Go Live](#go-live).

## Prerequisites

* **Onramp integration**: Complete a [quickstart](https://docs.crossmint.com/onramp/quickstarts/react.md) first.
* **Google Pay enabled**: Set `googlePay: true` in `allowedMethods`. See [Configure Allowed Methods](https://docs.crossmint.com/onramp/guides/payment-methods.md#configure-allowed-methods).

## Set Up Google Pay

On the web, Google Pay works out of the box — enabling it via `allowedMethods` is all that is needed. Mobile apps require additional native configuration because the payment sheet is rendered by the operating system.

> [tab] React Native
>
> ### Prerequisites
>
> * React Native app on Expo SDK 58. A bare React Native app needs [Expo modules installed](https://docs.expo.dev/bare/installing-expo-modules/).
> * Android device or emulator with Google Play Services
>
> **1. Install Dependencies**
>
> <Snippet file="client-sdk-react-native-ui-installation-cmd.mdx" />
>
> **2. Configure the Expo Plugin**
>
> Update your `app.json` to enable Google Pay:
>
> ```json theme={null}
> {
>   "expo": {
>     "plugins": [
>       [
>         "@crossmint/client-sdk-react-native-ui",
>         {
>           "enableGooglePay": true
>         }
>       ]
>     ]
>   }
> }
> ```
>
> > [!WARNING]
> >
> > This plugin modifies native Android permissions required for Google Pay. The app must be rebuilt after adding this configuration.
>
> **3. Rebuild Your App**
>
> Hot reload cannot apply the permission changes. You must rebuild:
>
> ```bash theme={null}
> npx expo run:android
> ```
>
> Or for bare React Native:
>
> ```bash theme={null}
> npx react-native run-android
> ```
>
> **4. Enable Google Pay in the Checkout Component**
>
> Set `googlePay: true` in `allowedMethods` as shown in [Configure Allowed Methods](https://docs.crossmint.com/onramp/guides/payment-methods.md#configure-allowed-methods).

> [tab] Android Native (Kotlin)
>
> ### Prerequisites
>
> * Minimum Android SDK version 24 (Android 7.0)
> * Jetpack Compose
>
> **1. Add the SDK Dependency**
>
> In your app-level `build.gradle.kts`:
>
> ```kotlin theme={null}
> dependencies {
>     implementation("com.crossmint:crossmint-sdk-android:0.0.9")
> }
> ```
>
> **2. Configure AndroidManifest.xml**
>
> Add the required query intents to enable Google Pay functionality:
>
> ```xml theme={null}
> <manifest xmlns:android="http://schemas.android.com/apk/res/android">
>     <queries>
>         <intent>
>             <action android:name="org.chromium.intent.action.PAY"/>
>         </intent>
>         <intent>
>             <action android:name="org.chromium.intent.action.IS_READY_TO_PAY"/>
>         </intent>
>         <intent>
>             <action android:name="org.chromium.intent.action.UPDATE_PAYMENT_DETAILS"/>
>         </intent>
>     </queries>
> </manifest>
> ```
>
> **3. Enable Google Pay in the Checkout Component**
>
> Set `googlePay = true` in `allowedMethods` as shown in [Configure Allowed Methods](https://docs.crossmint.com/onramp/guides/payment-methods.md#configure-allowed-methods).

## Go Live

Google Pay works immediately in **staging** environments. For **production**, Google requires explicit approval of your Android app.

> [accordion] Step 1: Create Your Business Profile
>
> 1. Navigate to the [Google Pay & Wallet Console](https://pay.google.com/business/console)
> 2. Select "Merchant" as your business type
> 3. Complete all business profile information
> 4. Navigate to **Google Pay API** and click "Get Started"
> 5. Accept the Google Pay API Terms of Service
> 6. Note your **Merchant ID** (top-right corner after completion)

> [accordion] Step 2: Submit Your Android App for Approval
>
> In the Google Pay & Wallet Console:
>
> 1. Navigate to **Google Pay API** then **Integrations** then **Integrate with your Android app**
> 2. Locate your Android application and click "Manage"
> 3. Select your integration type (typically "Gateway")
> 4. Upload screenshots of your TEST Google Pay integration
> 5. Click "Save" then "Submit for approval"
>
> **Required Screenshots:**
>
> * Product/item selection showing Google Pay option
> * Cart or checkout view with payment options
> * Google Pay payment sheet with card selection
> * Confirmation or receipt screen

> [accordion] Step 3: Go Live
>
> After Google approval (typically \~1 business day):
>
> 1. Sign your APK with a **release key** (debug keys do not work in production)
> 2. Update environment settings:
>    * Kotlin: `environment = CheckoutEnvironment.PRODUCTION`
>    * React Native: Use production API key
> 3. Publish your app to Google Play Store

## Troubleshooting

> [accordion] Google Pay button does not appear
>
> 1. **Plugin not configured:** Verify `enableGooglePay: true` in `app.json` plugins
> 2. **App not rebuilt:** Run `npx expo run:android` after adding the plugin
> 3. **Environment mismatch:** Staging works without approval; production requires it
> 4. **Payment method disabled:** Check `googlePay: true` in `allowedMethods`

> [accordion] PaymentRequest API is not supported error
>
> 1. **AndroidManifest missing queries:** Add all three Chromium intent queries
> 2. **Native rebuild required:** Hot reload cannot apply permission changes
> 3. **Device requirements:** User needs Google Play Services 25.18.30+ and WebView 137+

## Next Steps

> [card] [Apple Pay](https://docs.crossmint.com/onramp/guides/apple-pay.md)
>
> Verify your domain and enable Apple Pay on web and iOS

> [card] [Configure Embedded Checkout Methods](https://docs.crossmint.com/onramp/guides/payment-methods.md)
>
> Choose which payment methods the embedded checkout offers
