I am trying to integrate credit card payments for our charity website. I have got 2 sample files from the gateway which are in aspxCSharp (default.aspx with default.aspx.cs and merchantresponse.aspx with merchant.aspx.cs along with a webconfig file which
is in version 3.5
I have been able to make my own cart - for donations which is working ok (small issue not affecting functionality, which can be resolved later).
I am able to post the required fields to the payment gateway but struggling in the further steps of handling the gateway responses. For this they have provided these files in CSharp, which I am trying to convert to cshtml.
The task is daunting for my level - any guidance/help please.
Read
this guidance on Razor - which is simply a way of separating C# code from the HTML in a .cshtml page. You should be able to copy/paste the relevant web.config entries to a 4.0 file.
SHR
Member
30 Points
65 Posts
Converting aspx.cs to cshtml
May 22, 2012 10:19 PM|LINK
Hi experts
I am trying to integrate credit card payments for our charity website. I have got 2 sample files from the gateway which are in aspxCSharp (default.aspx with default.aspx.cs and merchantresponse.aspx with merchant.aspx.cs along with a webconfig file which is in version 3.5
I have been able to make my own cart - for donations which is working ok (small issue not affecting functionality, which can be resolved later).
I am able to post the required fields to the payment gateway but struggling in the further steps of handling the gateway responses. For this they have provided these files in CSharp, which I am trying to convert to cshtml.
The task is daunting for my level - any guidance/help please.
Hamid
Mikesdotnett...
All-Star
155659 Points
19987 Posts
Moderator
MVP
Re: Converting aspx.cs to cshtml
May 23, 2012 05:01 AM|LINK
Read this guidance on Razor - which is simply a way of separating C# code from the HTML in a .cshtml page. You should be able to copy/paste the relevant web.config entries to a 4.0 file.
Web Pages CMS | My Site | Twitter