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

# Google Pay Half-Page Experience

> Let customers complete Google Pay UPI payments in a half-page sheet inside your Android app, without switching to the Google Pay app.

Available in
🇮🇳 India

With the Google Pay Half-Page Experience, Google Pay opens as a half-page sheet over Razorpay Checkout in your Android app. Customers choose their UPI account and enter their UPI PIN without leaving your app. This removes the app switch, where roughly 1 in 8 UPI intent payments is abandoned.

| | Standard Google Pay intent flow | Google Pay Half-Page Experience |
| - | - | - |
| **Experience** | Full app switch to Google Pay. | Google Pay sheet over your checkout. |
| **Context** | Customer leaves your app. | Customer stays in your app. |
| **Return journey** | Customer navigates back from the Google Pay app. | Sheet closes and returns to checkout. |
| **Integration effort** | None. | One Gradle dependency and Google Pay Business Console onboarding. |

> [!NOTE]
>
> **Availability**
>
> * Google Pay appears under **UPI** on Standard Checkout (web and Android) with no integration needed. The Half-Page Experience is an optional upgrade for Android apps.
> * The Half-Page Experience is available on the Razorpay [Android Standard Checkout](https://razorpay.com/docs/payments/payment-gateway/android-integration/standard.md) SDK. iOS is not supported.
> * It works for UPI one-time payments. UPI Autopay (recurring payments) is not supported.

## How It Works

1. The customer selects **Google Pay** on Razorpay Checkout.
2. Checkout detects the Google Pay Half-Page library in your app.
3. The Google Pay payment sheet opens over your checkout. There is no app switch.
4. The customer confirms the payment with their UPI PIN on the NPCI page.
5. The payment result is delivered to your existing `PaymentResultListener`.

<video controls muted playsInline preload="metadata" aria-label="Google Pay Half-Page Experience: the customer taps Pay in the app, selects Google Pay on Razorpay Checkout, the Google Pay sheet opens over the checkout, the customer enters their UPI PIN and Razorpay confirms the payment without the customer leaving the app.">
  <source src="https://mintcdn.com/razorpay-881012b3/Ap9zg3OuxRchXvsE/static/docs-home/assets/gpay-half-page-flow.mp4?fit=max&auto=format&n=Ap9zg3OuxRchXvsE&q=85&s=4bcd0982e99522f0cfcb12c99ddd0332" type="video/mp4" />
</video>

**Google Pay Half-Page Experience**\
The Google Pay sheet opens over Razorpay Checkout and the customer completes the payment without leaving the app.

## Prerequisites

* An Android app integrated with the Razorpay [Android Standard Checkout](https://razorpay.com/docs/payments/payment-gateway/android-integration/standard.md) SDK and live with payments.
* A Google Pay & Wallet Business Console account with an approved Business Profile and at least one UPI ID registered. See [Step 1](#step-1-onboard-on-the-google-pay-business-console).
* The feature enabled on your account by Razorpay. See [Step 3](#step-3-get-the-feature-enabled).

## Integration Steps

### Step 1: Onboard on the Google Pay Business Console

Register your business details and UPI IDs on the Google Pay & Wallet Business Console.

> [tab] Gmail Account
>
> 1. Log in to the [Google Pay & Wallet Business Console](https://pay.google.com/business/console/profiles) with your Gmail account.
>
> 2. Select **Create a new business** and enter the required details. This generates your Google Pay merchant ID.
>
> 3. Open the **Business Profile** tab and complete all fields under **Business identity** and **Business information**.
>
>    > [!NOTE]
>    >
>    > * Make sure all business details under **Business identity** → **Payments profile** are complete and accurate. This prevents settlement and invoicing errors.
>    > * An LEI (Legal Entity Identifier) number is a legal requirement if your settlement batch is expected to exceed ₹50 crore.
>
> 4. Click **Submit**. Google reviews the profile, which can take up to 48 hours.
>
> 5. Once the profile is approved, open the **Integrations** tab.
>
> 6. Click **Add UPI ID** under **UPI Integration**. You can add up to 10 UPI IDs to one merchant account.

> [tab] Microsoft or Outlook Account
>
> If you use a Microsoft or Outlook email address, first create a Google Account with it:
>
> 1. Go to the Google Account sign-up page.
> 2. Enter your first and last name and click **Next**.
> 3. On the **Basic information** screen, enter your date of birth and gender and click **Next**.
> 4. Enter your Microsoft or Outlook email address and click **Next**.
> 5. Enter the OTP sent to your email address to confirm you own it, and set a password.
> 6. Log in to the [Google Pay & Wallet Business Console](https://pay.google.com/business/console/profiles) with your Microsoft or Outlook credentials and complete the sign-up.
> 7. Follow the steps in the **Gmail Account** tab from step 2 onwards.

### Step 2: Add the SDK Dependency

Upgrade the Razorpay Android Standard Checkout SDK to version 1.6.41 or later and add the Google Pay Half-Page dependency. In your app module's `build.gradle` file:

```gradle build.gradle theme={null}
dependencies {
    // Razorpay Android Standard Checkout SDK
    implementation 'com.razorpay:checkout:1.6.41'

    // Google Pay Half-Page Experience
    implementation 'com.razorpay:gpay-halfpage:1.0.0'
}
```

Rebuild your app. This is the entire code change. You do not have to change your existing checkout or payment result handling code.

### Step 3: Get the Feature Enabled

The Google Pay Half-Page Experience is an opt-in feature activated for each merchant account. After you add the dependency, ask your Razorpay Account Manager to enable it on your account.

Until the feature is enabled, your app behaves exactly as before and Google Pay payments use the standard intent flow. You can safely release your app with the dependency before the feature is enabled.

### Step 4: Test and Go Live

Make a live Google Pay payment from your app. Check that the Google Pay sheet opens inside your app and the payment result reaches your `PaymentResultListener`.

## Go-live Checklist

| Step | Owner |
| - | - |
| Business Profile approved and UPI ID added on the Google Pay & Wallet Business Console. | You |
| Razorpay Android Standard Checkout SDK upgraded to 1.6.41, `com.razorpay:gpay-halfpage:1.0.0` dependency added and app rebuilt. | Your developers |
| Feature enabled on your account. | Razorpay Account Manager |
| Live Google Pay payment tested. The sheet opens in-app and the result reaches your listener. | Your developers |

## FAQs

### Business Profile

> [accordion] 1. Which GST number should I use?
>
> Use the corporate GST number mentioned on your business's official GST certificate.

> [accordion] 2. I do not have a website. What should I enter in the Website URL field?
>
> Open the Google Play Store on the web and copy the link to your app's listing. Use this only if you do not have a website.

> [accordion] 3. Whose name should I enter as the business owner?
>
> Enter the name of the founder or a member of senior management, such as a director.

> [accordion] 4. My Business Profile was rejected. What should I do?
>
> You can either:
>
> * Raise a ticket through the **Help Center** on the Google Pay & Wallet Business Console.
> * Contact your Razorpay Account Manager, who can escalate it to Google.

### Integration

> [accordion] 5. Do I need to change my checkout code?
>
> No. Adding the dependency is the only code change. Payment results still reach your existing `PaymentResultListener`.

> [accordion] 6. What happens if the feature is not enabled on my account yet?
>
> Google Pay payments use the standard intent flow. You can safely release your app with the dependency before the feature is enabled.

> [accordion] 7. Is iOS supported?
>
> No. The Google Pay Half-Page Experience is available only on Android.

> [accordion] 8. Does it work for UPI Autopay?
>
> No. It works only for UPI one-time payments.
