Documentation

asp.net - MVC (C#)

The NTT DATA Payment Services India plugin for C Sharp MVC is a comprehensive and secure solution designed to integrate seamless payment processing capabilities into your ASP.NET MVC applications. This plugin simplifies the process of managing online transactions, ensuring a smooth and efficient payment experience for your users.

What are the prerequisites?

  • .NET framwork 4.7.2

How to Integrate?

  1. Ensure that the .NET Framework version 4.7.2 is installed.
  2. Add all require namespaces in page.
  3. Copy the code from the controller and view and past to the desired event.
  4. Modify the request and the keys used for encryption and decryption.
  5. Update the UAT and Production CDN link.

Project Structure

The project contains the following files and folder:

  • Models:Contain classes for require entities/POJO.
  • Views:
    • Home(index) - contain sample page to initiate the checkout page. Response(response)-Contain sample page to show response.
  • Controllers:
    • HomeController - Contain the code for initiating payment requests, generating tokens and encryption logic)
    • ResponseController - Contain the code for capturing payment responses and decryption logic.

Download Sample

This is an example of integration code for ASP.NET-MVC (C#), illustrating the process of incorporating the NTTDATA Payment Gateway into your .NET application.

Download latest MVC C# sample code from GitHub.