Merchants targeting API level 30+ and running on Android 11 will only be able to
see a few apps. For more details, see here.
Merchants have to make changes to their manifest files in order to access a set
of other installed apps on the device that they intend to access.
For more details, see here.
To include Google Pay app, include the package name in <package> elements
inside the <queries> element.
[null,null,["Last updated 2024-10-16 UTC."],[[["\u003cp\u003eIntegrate Google Pay by fulfilling prerequisites like having Android version 21, Google Play Services version 12.6.00 or higher, and being onboarded on the Google Pay for Business program.\u003c/p\u003e\n"],["\u003cp\u003eConfigure your project by adding the Google maven repository and app dependencies to your \u003ccode\u003ebuild.gradle\u003c/code\u003e files.\u003c/p\u003e\n"],["\u003cp\u003eFor Android 11 compatibility, declare the Google Pay app package name in your manifest file to ensure visibility and access.\u003c/p\u003e\n"],["\u003cp\u003eSet up the Google Pay app by getting allowlisted, installing the app, and adding a UPI form of payment that adheres to business and transaction requirements.\u003c/p\u003e\n"]]],["To integrate the Google Pay SDK, ensure your device runs Android 21+ and Google Play Services 12.6.00+. Onboard to Google Pay for Business and set up the Google Pay app with an allowlisted Gmail account and a UPI payment method. Configure your project by adding the Google Maven repository and necessary app dependencies. Merchants using Android 11+ must modify manifest files to include Google Pay's package name for app visibility. Businesses must have required API from banks to check payment status.\n"],null,["# Set up for integration\n\nBefore you start integrating the Google Pay SDK with your app, you need to\nhave the following setup.\n\nPrerequisites\n-------------\n\nMake sure you fulfill the following prerequisites before you get started:\n\n1. Your device must have **Android version 21.**\n2. Your device must have **Google Play Services version 12.6.00** or higher.\n3. You must be onboarded on the **Google Pay for Business** program.\n4. Set up Google Pay app.\n\n 1. Provide your Gmail account(s) to your Google representative to get allowlisted, and to get access to the [Google Pay SDK](/static/pay/india/api/merchant-sdk/assets/google-pay-client-api-1.0.1.aar).\n 2. Install the Google Pay app from Play Store.\n 3. Add a UPI form of payment.\n\n - Businesses must be set up to accept UPI, and must be verified merchants by NPCI/banks.\n - Ensure that you have the required APIs from your bank to check the status of a payment.\n - Note that every transaction should use a unique transaction ID.\n - Ensure that your (merchant's) VPA is allowlisted by the Google Pay\n team.\n\n | **Note:** You can skip this step if you are already accepting payments via Google Pay for Business.\n\nConfigure your project\n----------------------\n\n| **Important:** If you don't have Android Studio installed, download and install [Android Studio](https://developer.android.com/studio/index.html).\n\n1. Add the Google maven repository to the top level `build.gradle` file of your\n project.\n\n allprojects {\n repositories {\n google()\n ...\n }\n }\n\n2. Add the following app dependencies to the `build.gradle` file in the app\n module.\n\n dependencies {\n implementation 'com.google.android.gms:play-services-tasks:15.0.1'\n ...\n }\n\nAndroid 11 requirements\n-----------------------\n\nMerchants targeting API level 30+ and running on Android 11 will only be able to\nsee a few apps. For more details, see [here](https://developer.android.com/training/package-visibility/declaring).\n\nMerchants have to make changes to their manifest files in order to access a set\nof other installed apps on the device that they intend to access.\nFor more details, see [here](https://developer.android.com/training/package-visibility/declaring).\n\nTo include Google Pay app, include the package name in `\u003cpackage\u003e` elements\ninside the `\u003cqueries\u003e` element. \n\n \u003cmanifest package=\"com.example.merchantapp\"\u003e\n \u003cqueries\u003e\n \u003cpackage android:name=\"com.google.android.apps.nbu.paisa.user\" /\u003e\n \u003c/queries\u003e\n \u003c/manifest\u003e"]]