Skip to main content

Installation

Download the JAR file and include it in the libs folder.

Initialization

To initiate the SDK, call the Razorpay class constructor in your project and pass key 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 your activity in onActivityResult method. This should be passed to Razorpay as shown below:
Java