Hi All, this tutorial is about CCAvenue payment gateway integration for ASP.NET Razor website (.CSHTML). If you are using ASP.NET web pages (.ASPX) you can check the tutorial here.
Download the CCAvenue Integration kit and add Right click on your visual studio project -> Add -> Referenceand choose the reference file
MCPG.CCA.Util.dlland import it into the visual studio project.
Search for SnippetAdd Working Key, Access Code to processor.chtml file.string workingKey = "add_your_32_bit_working_key_here";Replace with your 32 secret key given from CCAvenue
Search for Snippetvar workingKey = "add_your_32_bit_working_key_here";and Snippetvar strAccessCode = "add_your_access_key_here";Replace with your working key and access key.
processor.cshtmland change form action as following,
ii. Build the Project.
iii. Run the Project.
That's all :)
if you did all the steps as mentioned, you will get the website as shown below
Once you filled out this form, you will redirect to CCAvenue checkout page. Kindly drop your concern/issues/suggestion in below comment section.