Web Integration
Collect flow
On your website, all Google Pay requests will be Collect requests. The customer selects the Google Pay option, enters their UPI handle and clicks Pay. A request is sent to the Google Pay app installed on their mobile device. The customer has to manually open the Google Pay app and approve the request.Intent flow
Customers can make intent-based payments using Google Pay on mobile-web applications. Here, the customer is redirected to Google Pay’s application, installed on their mobile devices, to complete the payment.Feature RequestThis is an on-demand feature. Please raise a request with our Support team to get this feature activated on your Razorpay account.to get this feature activated on your account.
Android Integration
Intent-Based Integration
When using the Standard Checkout, Google Pay is shown inside the payment method UPI. The customer selects Google Pay from the list of apps and click Pay. Customers are then redirected to the Google Pay application, provided it is installed on the mobile device they are using to access checkout, where they can make the payment.Intent-Based Integration Using Google Pay SDK
You also have the option to integrate Google Pay with the Standard Checkout on your Android app using Google’s SDK. This offers the advantage of letting you open Google Pay within your application for customers to make the payment without any redirection, enhancing the user experience.Prerequisites
- Sign up for a business account with Google Pay.
- Contact our Support Team and have them whitelist your UPI ID/VPA.
- Verify your UPI ID/VPA details on the Google Merchant Console. Here, Google deposits a small amount into the bank account linked to your VPA (UPI ID).
- You should have already integrated Razorpay Standard Checkout.
- Generate API Keys from the Dashboard.
Collect-Based Integration
This is same as UPI Collect Integration. The customers enter their UPI handle in the Enter your UPI ID section on the Checkout form and click Pay. Collect the customer’s UPI handle and pass it in the payment request with method asupi.
Razorpay then triggers a Collect request. The Collection request is sent to the customer’s Google Pay application where they can make the payment.
NPCI Restrictions for UPI Collect Flow
As per NPCI guidelines, the following MCC codes are restricted and cannot accept UPI Collect payments:
Restricted MCC Codes
MCC Code | Category
5816 | Digital Goods: Games
6540 | POI Funding Transactions (excluding MoneySend)
4812 | Telecommunication Equipment and Telephone Sales
4814 | Telecommunication Services
7408 | Lending Platform
6513 | Real Estate Agents and Managers - Rentals
7995 | Betting/Lottery
5412 | Grocery Stores, Supermarkets
5413 | Grocery Stores, Supermarkets To integrate Google Pay with the Checkout on your Android app using Google’s SDK:- Download the Google Pay SDK and add the
.aarfiles to the application library.
Handy TipsThe Razorpay-Google Pay SDK acts as a wrapper over the native Google-SDK. This SDK connects Razorpay’s SDK with the Google SDK. You need all the 3 SDKs (listed below) for the flow to work.
- Razorpay Android SDK
- Google Pay SDK
- Razorpay-Google Pay SDK
-
Add the following lines of code to the
build.gradlefile of your application:build.gradle