Install Razorpay .NET SDK

Install the Razorpay .NET server-side SDK to interact with Razorpay APIs.


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

.NET Client API🔗

The .NET Client API follows the below practices:

  • Namespaced under Razorpay.Api.
  • The .NET client throws exceptions instead of returning errors.
  • Options are passed as a Dictionary instead of multiple arguments, wherever possible.
  • All requests and responses are communicated over JSON.

Installation🔗

Install Razorpay using the NuGet Package Manager or using the NET Core command-line interface (CLI).

NuGet Package Manager🔗

To install the SDK using NuGet Package Manager:

  1. Download the latest source code zip file from the releases section on GitHub.

  2. Download the NuGet Package Manager and install it. Handy Tips
    The NuGet Package Manager only supports .NET 4.0 and higher. Ensure that you have the appropriate version of .NET installed.

  3. Run the following command on the NuGet Package Manager:

    CopyInstall-Package Razorpay -Version {version_number}

Terminal/Command Prompt🔗

Handy Tips
You must have .NET Core CLI installed on your system to use this method.

To install the SDK from the command prompt:

  1. Download the latest source code file from the nuget.org.
  2. Run the following command: dotnet add package Razorpay --version {version_number}

Handy Tips
In case the last command fails with invalid cert received from server, run the following commands:

Copyyes | certmgr -ssl -m https://go.microsoft.com yes | certmgr -ssl -m https://nugetgallery.blob.core.windows.net yes | certmgr -ssl -m https://myget.org yes | certmgr -ssl -m https://nuget.org mozroots --import --sync --quiet
×