> ## Documentation Index
> Fetch the complete documentation index at: https://razorpay-881012b3.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# .NET Server SDK Prerequisites

> Check the prerequisites before you integrate with Razorpay .NET server-side SDK.

<div style={{display:"flex",flexWrap:"wrap",alignItems:"center",gap:"0.35rem 0.9rem",border:"1px solid rgba(128,128,128,0.28)",borderRadius:"0.5rem",padding:"0.45rem 0.75rem",margin:"0 0 1.25rem",fontSize:"0.875rem"}}>
  <span style={{fontWeight:600}}>Available in</span>
  <span>🇮🇳 India</span>
  <span>🇸🇬 Singapore</span>
</div>

<CardGroup cols={2}>
  <Card title=".NET Changelog" href="/docs/payments/changelog#server-sdks">
    Discover new features, updates and deprecations related to the Razorpay .NET SDK (since Jan 2024).
  </Card>

  <Card title="Troubleshooting & FAQs" href="/docs/payments/server-integration/dot-net/troubleshooting-faqs">
    Troubleshoot common error scenarios and find answers to frequently asked questions about Razorpay .NET SDK.
  </Card>
</CardGroup>

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](/docs/payments/server-integration/dot-net/troubleshooting-faqs). Know more about the [latest .NET versions](https://versionsof.net/framework/).

## .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:

<Tabs>
  <Tab title="NuGet Package Manager">
    To install the SDK using NuGet Package Manager:

    1. [Download the latest source code zip file](https://github.com/razorpay/razorpay-dot-net/releases) from the releases section on GitHub.
    2. [Download the NuGet Package Manager](https://marketplace.visualstudio.com/items?itemName=NuGetTeam.NuGetPackageManager) and install it.

    <Info>
      **Handy Tips**

      The NuGet Package Manager only supports .NET 4.0 and higher. Ensure that you have the appropriate version of .NET installed.
    </Info>

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

    ```
    Install-Package Razorpay -Version {version_number}
    ```
  </Tab>

  <Tab title="Terminal/Command Prompt">
    <Info>
      **Handy Tips**

      You must have [.NET Core CLI](https://dotnet.microsoft.com/download) installed on your system to use this method.
    </Info>

    To install the SDK from the command prompt:

    1. [Download the latest source code file](https://www.nuget.org/packages/Razorpay) from the nuget.org.
    2. Run the following command:

    ```
    dotnet add package Razorpay --version {version_number}
    ```

    <Info>
      **Handy Tips**

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

      ```bash Certification Manager commands theme={null}
      yes | 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
      ```
    </Info>
  </Tab>
</Tabs>

<CardGroup cols={2}>
  <Card title="Payment Gateway" href="/docs/payments/server-integration/dot-net/integration-steps">
    Integrate with Razorpay Payment Gateway.
  </Card>

  <Card title="API Sample Codes" href="https://github.com/razorpay/razorpay-dot-net/tree/master/documents">
    Integrate using API sample codes.
  </Card>
</CardGroup>

## Support

* **Queries**: If you have queries, [contact support](https://razorpay.com/support/).

* **Feature Request:** If you have a feature request, raise an issue on [GitHub](https://github.com/razorpay/razorpay-dot-net/issues/new).

### Related Information

[Address Verification System](/docs/payments/international-payments/address-verification-system)
