Install Razorpay Java SDK

Install the Java server-side SDK and interact with Razorpay APIs to start accepting payments.


You can install the Razorpay Java SDK and integrate it with your Java-based website to accept payments, initiate refunds and much more.

Watch Out!

You must be using Java 1.8 or higher.

Here is how you can integrate the Java server-side SDK with your Java based website:

You can install Razorpay using Maven or Gradle.

  1. Download and install on your system.
  2. Download the zip file from the Releases section of GitHub.
  3. Unzip the file and add this dependency to the project object model (POM) of your project.

Import the following packages before your get started:

import org.json.JSONObject;
import com.razorpay.*;


Is this integration guide useful?