Requirements🔗
Use .NET 4.5 with TLS version 1.2.
Handy Tips
TLS version 1.2 works only with .NET version 4.5. Using it with a lower .NET version will lead to errors. Check the FAQs & Troubleshooting steps.
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.
Use .NET 4.5 with TLS version 1.2.
Handy Tips
TLS version 1.2 works only with .NET version 4.5. Using it with a lower .NET version will lead to errors. Check the FAQs & Troubleshooting steps.
The .NET Client API follows the below practices:
Razorpay.Api
.Install Razorpay using the NuGet Package Manager or using the NET Core command-line interface (CLI).
To install the SDK using NuGet Package Manager:
Download the latest source code zip file from the releases section on GitHub.
Download the NuGet Package Manager and install it.
The NuGet Package Manager only supports .NET 4.0 and higher. Ensure that you have the appropriate version of .NET installed.
Run the following command on the NuGet Package Manager:
CopyInstall-Package Razorpay -Version {version_number}
Handy Tips
You must have .NET Core CLI installed on your system to use this method.
To install the SDK from the command prompt:
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
Integrate with Payment Gateway
API Sample Codes