Skip to main content
  • .NET Changelog: Discover new features, updates and deprecations related to the Razorpay .NET SDK (since Jan 2024).
    • Troubleshooting & FAQs: Troubleshoot common error scenarios and find answers to frequently asked questions about Razorpay .NET SDK.
Install the Razorpay .NET SDK and integrate it with your .NET-based website to accept payments, initiate refunds and do much more.

Dependencies

You must use .NET v4.5 or higher with TLS version 1.2. Using it with a lower .NET version will lead to errors. Know more about the latest .NET versions.

.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 either: 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 TipsThe NuGet Package Manager only supports .NET 4.0 and higher. Ensure that you have the appropriate version of .NET installed.
  1. Run the following command on the NuGet Package Manager:
Handy TipsYou 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:
Handy TipsIn case the last command fails with invalid cert received from server, run the following commands:
Certification Manager commands
  • Payment Gateway: Integrate with Razorpay Payment Gateway.
  • API Sample Codes: Integrate using API sample codes.

Support

  • Queries: If you have queries, contact support.
  • Feature Request: If you have a feature request, raise an issue on GitHub.
Address Verification System