API ReferenceIntegrationsKnowledge Base

Sample Application

Download the Razorpay .NET Sample App from here.
Ensure you are using the latest version of the SDK. You can download the latest version of the SDK from GitHub.

Note:
This test app uses a Nuget package based SDK integration. If you are not using nuget please download the SDK from GitHub and add the required version of dll in your project reference.

Integration#

To integrate the automatic checkout:

  1. Create a checkout form using our Checkout Integration.
  2. Accept the razorpay_payment_id parameter in the form submission.
  3. Run the capture code to capture the payment.

Note:
Ensure you do the following while using the sample app:

  • Edit the <key_id> inside Payment.aspx. Use the test keys while testing your application. Click here to learn more about how to generate keys.
  • Edit the <key_id> and <key_secret> in charge.aspx.