Install the .NET server-side SDK to interact with Razorpay APIs to start accepting payments.
The Razorpay Payment Gateway enables you to accept payments via debit card, credit card, netbanking (supports 3D Secure), UPI or through any of our supported wallets. Refer to the Payment Methods section for a list of payment methods we support.
Download the NuGet Package Manager and install it.
Note:
Nuget Package Manager only supports .NET 4.0 and higher. Make sure that you have the appropriate version of .NET installed.
Run the following command on the NuGet Package Manager:
After payment is authorized, you need to capture it to settle the amount to your bank account as per the settlement schedule. Payments that are not captured are auto-refunded after a fixed time.
Auto-capture payments (recommended) Authorized payments can be automatically captured. You can auto-capture all payments using global settings on the Razorpay Dashboard.
Watch Out!
Payment capture settings work only if you have integrated with Orders API in your server side. Know more about the Orders API.
Manually capture payments Each authorized payment can also be captured individually. You can manually capture payments:
If you are accepting international payments, you can use Razorpay's Address Verification System (AVS). AVS verifies if a customer's billing address (postal code and the billing street address) matches the billing address on file with the card issuer. Based on the response from the issuer, Razorpay will accept or cancel the transaction. This helps in the prevention of fraud in international payments.