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 -> Reference
and choose the reference file MCPG.CCA.Util.dll
and import it into the visual studio project.Search for Snippet
string workingKey = "add_your_32_bit_working_key_here";
Replace with your 32 secret key given from CCAvenue
Add Working Key, Access Code to processor.chtml file.
Search for Snippet
var workingKey = "add_your_32_bit_working_key_here";
and Snippet
var strAccessCode = "add_your_access_key_here";
Replace with your working key and access key.
processor.cshtml
and change form action as following,For Testing, https://test.ccavenue.com/transaction/transaction.do?command=initiateTransaction
For Release, https://secure.ccavenue.com/transaction/transaction.do?command=initiateTransaction
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.
Aravin