Benefits
Enjoy the benefits such as higher conversion rates, decrease in abandoned carts and a decrease in time to complete the payment. Your customers are also benefited in the following ways:- No need to handle push or SMS notifications.
- No need to switch between applications to complete a payment (merchant, SMS and app).
- No need to remember their VPAs.
Understand Intent flow
The payment flow for UPI Intent payments is given below.- In the UPI Intent flow, the customer selects UPI as the payment method on your website or app. A list of UPI apps supporting the intent flow is displayed.
Supported Platforms
UPI Intent is supported on mWeb (Android) and Mobile App (WebView). On Desktop Web, UPI Intent is not supported, a QR code is automatically displayed instead.Platform | Procedure
mWeb | Customers are redirected to their preferred UPI app to complete the payment. For the complete integration guide, refer to UPI Intent on Mobile Web.
Mobile App (WebView) | UPI Intent requires deep link handling in your Android or iOS app to launch UPI apps from the WebView. For the complete integration guide, refer to UPI Intent in WebView: Android and UPI Intent in WebView: iOS.
Desktop Web | UPI Intent is not supported. A QR code is automatically displayed for customers to scan with their preferred UPI app. No additional code changes are required.Integrate on Android, iOS and Mobile Web
Use the Android SDK to support UPI Intent payments when a payment is processed through Razorpay in a WebView inside an app.Installation
Download the JAR file and include it in thelibs folder.
Initialisation
To initiate the SDK, call the Razorpay class constructor in your project and passkey as Razorpay API key and webView as the object that handles the payment flow.
Java
Passing Result to Razorpay
After UPI is selected as the payment method, Razorpay invokes the Intent Flow page that lists all the available intent flows for the user to select and make the payment. Upon payment completion, the UPI app returns the result back to youractivity in onActivityResult method. This should be passed to Razorpay as shown below:
Java
Prerequisites
- Sign up for a Razorpay account.
- Generate API Keys from the Dashboard.
iOS Standard Checkout
To enable UPI Intent on your iOS app’s Standard Checkout:- Ensure that the latest version of the iOS Standard SDK is integrated with your app.
-
Your iOS app must seek permission from the device to open the UPI PSP app that the customer selects on Checkout. For this, you must make the following changes in your iOS app’s info.plist file.
info.plist
UPI Intent on Recurring Payments
Configure and initiate a recurring payment transaction on UPI Intent:ViewController.swift
Feature EnablementThe UPI Intent feature is usually available by default. If you are unable to access this feature, contact our Support Team to get this enabled on your account.
Features
- The UPI intent on mobile web is available at Razorpay Standard Checkout and other products such as Payment Links, Payment Pages and Invoices.
- It works for UPI PSP apps.
List of Supported UPI Intent Apps
Given below is the list of supported UPI apps for Mobile Web:Android
Sr. No | App Name
1 | Google Pay
2 | PhonePe
3 | CRED
4 | PayTM
5 | BHIM
6 | AmazonPay
7 | iMobile by ICICI
8 | PayZapp
9 | Mobikwik
10 | NaviiOS
Sr. No | App Name
1 | Google Pay
2 | PhonePe
3 | CRED
4 | PayTM
5 | BHIMBest Practices
Following are the best practices to be followed to accept online payments using UPI intent flow. You must show the list of UPI apps in 2 sections:- Top performing apps (GPAY > PhonePe > Paytm > BHIM)
- Other apps