Overview

Google Pay can be setup as an in-app payment option using the UPI intent mechanism. This mechanism allows Google Pay to participate as an app when the merchant app triggers an in-app intent.

Prerequisites

  1. Business channels must accept UPI and be verified merchants by NPCI/banks.
  2. Ensure that you have the details required to accept payments using UPI ID with your bank.
  3. Ensure that you have all of the required APIs from your bank to check the status of a payment.
  4. Note that every transaction should use a unique transaction ID.

Android 11 requirements

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.

<manifest package="com.example.merchantapp">
    <queries>
        <package android:name="com.google.android.apps.nbu.paisa.user" />
    </queries>
</manifest>