Installation
Download the JAR file and include it in thelibs folder.
Initialization
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 the 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