<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Direct Post with Razor and MVC 4 in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Direct-Post-with-Razor-and-MVC-4/m-p/39964#M21749</link>
    <description>I have not looked at the quick start example for direct post specifically but I do work with MVC 4 and authorize a lot. Most of the Authorize examples are very informative but you generally you have to pull out the principals and apply it to your situation. I like MVC4 once I got into using it. My suggestion would be; 2. Use the controller to do all the work. Pass the data from the form to the controller and make the call to the authorize server from the controller. Once you get the response you can display it on the same form or redirect them to different page. if interested and need more info i can more detailed</description>
    <pubDate>Fri, 21 Mar 2014 17:40:14 GMT</pubDate>
    <dc:creator>glerler</dc:creator>
    <dc:date>2014-03-21T17:40:14Z</dc:date>
    <item>
      <title>Direct Post with Razor and MVC 4</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Direct-Post-with-Razor-and-MVC-4/m-p/39902#M21720</link>
      <description>&lt;P&gt;I am attempting to convert the quick start sample for Direct Post for use with Razor (MVC 4)&amp;nbsp; and running into some problems.&amp;nbsp; The main one right now is that Html.BeginSIMForm seems to render the form at the top of the page (above the DOCTYPE tag) and does not enclose the "order_id" hidden input or the submit button.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;using&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; (Html.BeginSIMForm(&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Model.ResponseUrl,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Model.AuthorizationRequest.Amount,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Model.AuthorizationRequest.Credentials.LoginId,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Model.AuthorizationRequest.Credentials.TransactionKey,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Model.AuthorizationRequest.Credentials.IsTestMode))&lt;BR /&gt;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @Html.Raw( @Html.CheckoutFormInputs(&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;true&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;))&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @Html.Hidden(&lt;FONT size="2" face="Consolas" color="#a31515"&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;"order_id"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;,Model.AuthorizationRequest.OrderId)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#800000"&gt;&lt;FONT size="2" face="Consolas" color="#800000"&gt;&lt;FONT size="2" face="Consolas" color="#800000"&gt;input &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#ff0000"&gt;&lt;FONT size="2" face="Consolas" color="#ff0000"&gt;&lt;FONT size="2" face="Consolas" color="#ff0000"&gt;type&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;="submit" &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#ff0000"&gt;&lt;FONT size="2" face="Consolas" color="#ff0000"&gt;&lt;FONT size="2" face="Consolas" color="#ff0000"&gt;value&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;="Submit Payment"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;/&amp;gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Renders this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;&lt;FONT size="2" color="#a31515"&gt;&lt;FONT size="2" color="#a31515"&gt;form &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#ff0000"&gt;&lt;FONT size="2" color="#ff0000"&gt;action&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;'&lt;A href="https://test.authorize.net/gateway/transact.dll'" target="_blank"&gt;https://test.authorize.net/gateway/transact.dll'&lt;/A&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#ff0000"&gt;&lt;FONT size="2" color="#ff0000"&gt;method&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;'post'&amp;gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;&amp;lt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#a31515"&gt;&lt;FONT size="2" color="#a31515"&gt;input &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#ff0000"&gt;&lt;FONT size="2" color="#ff0000"&gt;type&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;'hidden' &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#ff0000"&gt;&lt;FONT size="2" color="#ff0000"&gt;name&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;'x_fp_hash'&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#ff0000"&gt;&lt;FONT size="2" color="#ff0000"&gt;value&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;'-- Value removed --'&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; \&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;&amp;gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;&amp;lt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#a31515"&gt;&lt;FONT size="2" color="#a31515"&gt;input &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#ff0000"&gt;&lt;FONT size="2" color="#ff0000"&gt;type&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;'hidden' &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#ff0000"&gt;&lt;FONT size="2" color="#ff0000"&gt;name&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;'x_fp_sequence'&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#ff0000"&gt;&lt;FONT size="2" color="#ff0000"&gt;value&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;'146'&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;\&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;&amp;gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;&amp;lt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#a31515"&gt;&lt;FONT size="2" color="#a31515"&gt;input &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#ff0000"&gt;&lt;FONT size="2" color="#ff0000"&gt;type&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;'hidden' &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#ff0000"&gt;&lt;FONT size="2" color="#ff0000"&gt;name&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;'x_fp_timestamp'&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#ff0000"&gt;&lt;FONT size="2" color="#ff0000"&gt;value&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;'1395158912'&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; \&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;&amp;gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;&amp;lt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#a31515"&gt;&lt;FONT size="2" color="#a31515"&gt;input &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#ff0000"&gt;&lt;FONT size="2" color="#ff0000"&gt;type&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;'hidden' &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#ff0000"&gt;&lt;FONT size="2" color="#ff0000"&gt;name&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;'x_login'&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#ff0000"&gt;&lt;FONT size="2" color="#ff0000"&gt;value&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;'MYLOGINHERE'&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; \&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;&amp;gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;&amp;lt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#a31515"&gt;&lt;FONT size="2" color="#a31515"&gt;input &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#ff0000"&gt;&lt;FONT size="2" color="#ff0000"&gt;type&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;'hidden' &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#ff0000"&gt;&lt;FONT size="2" color="#ff0000"&gt;name&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;'x_amount'&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#ff0000"&gt;&lt;FONT size="2" color="#ff0000"&gt;value&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;'50.0'&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; \&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;&amp;gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;&amp;lt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#a31515"&gt;&lt;FONT size="2" color="#a31515"&gt;input &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#ff0000"&gt;&lt;FONT size="2" color="#ff0000"&gt;type&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;'hidden' &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#ff0000"&gt;&lt;FONT size="2" color="#ff0000"&gt;name&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;'x_relay_url'&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#ff0000"&gt;&lt;FONT size="2" color="#ff0000"&gt;value&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;'http://localhost:49358/payment/sim'&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; \&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;&amp;gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;&amp;lt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#a31515"&gt;&lt;FONT size="2" color="#a31515"&gt;input &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#ff0000"&gt;&lt;FONT size="2" color="#ff0000"&gt;type&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;'hidden' &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#ff0000"&gt;&lt;FONT size="2" color="#ff0000"&gt;name&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;'x_relay_response'&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#ff0000"&gt;&lt;FONT size="2" color="#ff0000"&gt;value&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;'TRUE'&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; \&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;&amp;gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/&lt;FONT size="2" color="#a31515"&gt;&lt;FONT size="2" color="#a31515"&gt;form&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;&amp;gt;&amp;lt;!&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#a31515"&gt;&lt;FONT size="2" color="#a31515"&gt;DOCTYPE &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#ff0000"&gt;&lt;FONT size="2" color="#ff0000"&gt;html&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;FONT size="2" color="#0000ff"&gt;&amp;gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2014 16:10:54 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Direct-Post-with-Razor-and-MVC-4/m-p/39902#M21720</guid>
      <dc:creator>tsorelle</dc:creator>
      <dc:date>2014-03-18T16:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: Direct Post with Razor and MVC 4</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Direct-Post-with-Razor-and-MVC-4/m-p/39926#M21731</link>
      <description>&lt;P&gt;Hello tsorelle&lt;BR /&gt;&lt;BR /&gt;It doesn't look like anyone has responded yet, but someone still may have feedback on what you're looking for. I'd recommend subscribing to this topic so that you'll be alerted via email if anyone else from the community is able to respond with any comments. To subscribe, click &lt;STRONG&gt;Topic Options&lt;/STRONG&gt; at the top of this thread and then select &lt;STRONG&gt;Subscribe&lt;/STRONG&gt;. You'll then receive an email once anyone replies to your post.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Richard&lt;/P&gt;</description>
      <pubDate>Thu, 20 Mar 2014 16:20:07 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Direct-Post-with-Razor-and-MVC-4/m-p/39926#M21731</guid>
      <dc:creator>RichardH</dc:creator>
      <dc:date>2014-03-20T16:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Direct Post with Razor and MVC 4</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Direct-Post-with-Razor-and-MVC-4/m-p/39944#M21740</link>
      <description>&lt;P&gt;Making some progress but still having issues.&amp;nbsp; I downloaded the SDK and found that the SIMForm.OpenForm() method was writing directly to the HttpResponse, as one would do in a webforms server control.&amp;nbsp; This might have worked in MVC 2 but does not work in later versions with the Razor view engine.&amp;nbsp; I created a wrapper class and defined some HtmlHelper extensions that do the job.&amp;nbsp; Taking care to delegate as much as possible to the services in the latest AuthorizeNet NuGet packages.&amp;nbsp; Also had to wrap helpers that return a plain string in order to return an HtmlString, which avoids unwanted encoding.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The payment entry form works in test mode, and&amp;nbsp;an "unsettled"&amp;nbsp;transaction was posted.&amp;nbsp;&amp;nbsp;However, it failed to redirect to my confirmation page.&amp;nbsp; Instead, I got this&amp;nbsp;message from &lt;A target="_blank" href="https://test.authorize.net/gateway/transact.dll"&gt;https://test.authorize.net/gateway/transact.dll&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An error occurred while trying to report this transaction to the merchant. An e-mail has been sent . . .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it not possible to test the redirect until a merchant account has been established?&amp;nbsp; Or is something wrong with the redirect?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's&amp;nbsp;my fix for the submit form:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;public &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;static &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;class&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;AuthnetSIMFormExtensions&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; {&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="Consolas" color="#808080"&gt;&lt;FONT size="2" face="Consolas" color="#808080"&gt;&lt;FONT size="2" face="Consolas" color="#808080"&gt;///&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#808080"&gt;&lt;FONT size="2" face="Consolas" color="#808080"&gt;&lt;FONT size="2" face="Consolas" color="#808080"&gt;&amp;lt;summary&amp;gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="Consolas" color="#808080"&gt;&lt;FONT size="2" face="Consolas" color="#808080"&gt;&lt;FONT size="2" face="Consolas" color="#808080"&gt;///&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#008000"&gt;&lt;FONT size="2" face="Consolas" color="#008000"&gt;&lt;FONT size="2" face="Consolas" color="#008000"&gt;&amp;nbsp; Replaces CheckoutFormBuilders.BeginSSIMForm for compatibility with Razor view engine&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="Consolas" color="#808080"&gt;&lt;FONT size="2" face="Consolas" color="#808080"&gt;&lt;FONT size="2" face="Consolas" color="#808080"&gt;///&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#808080"&gt;&lt;FONT size="2" face="Consolas" color="#808080"&gt;&lt;FONT size="2" face="Consolas" color="#808080"&gt;&amp;lt;/summary&amp;gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;public &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;static &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;HtmlString&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; StartSIMForm(&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;this&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;HtmlHelper&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; helper, &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;string&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; returnUrl, &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;decimal&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; amount, &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;string&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; apiLogin, &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;string&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; transactionKey, &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;bool&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; isTest = &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;true&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;var&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; seq = &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;Crypto&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;.GenerateSequence();&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;var&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; stamp = &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;Crypto&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;.GenerateTimestamp();&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;var&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; fingerPrint = &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;Crypto&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;.GenerateFingerprint(transactionKey, &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; apiLogin, amount, seq.ToString(), stamp.ToString());&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;var&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; result = &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;new&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;StringBuilder&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;();&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; result.Append(&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;string&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;.Format(&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;"&amp;lt;form action = '{0}' method = 'post'&amp;gt;\n"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;, isTest ? &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;Gateway&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;.TEST_URL : &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;Gateway&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;.LIVE_URL));&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; result.Append(&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;"\t\t&amp;lt;input type = 'hidden' name = 'x_fp_hash' value = '"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; + fingerPrint + &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;"' \\&amp;gt;\n"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;);&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; result.Append(&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;"\t\t&amp;lt;input type = 'hidden' name = 'x_fp_sequence' value = '"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; + seq + &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;"'\\&amp;gt;\n"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;);&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; result.Append(&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;"\t\t&amp;lt;input type = 'hidden' name = 'x_fp_timestamp' value = '"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; + stamp + &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;"' \\&amp;gt;\n"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;);&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; result.Append(&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;"\t\t&amp;lt;input type = 'hidden' name = 'x_login' value = '"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; + apiLogin + &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;"' \\&amp;gt;\n"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;);&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; result.Append(&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;"\t\t&amp;lt;input type = 'hidden' name = 'x_amount' value = '"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; + amount + &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;"' \\&amp;gt;\n"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;);&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; result.Append(&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;"\t\t&amp;lt;input type = 'hidden' name = 'x_relay_url' value = '"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; + returnUrl + &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;"' \\&amp;gt;\n"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;);&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; result.Append(&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;"\t\t&amp;lt;input type = 'hidden' name = 'x_relay_response' value = 'TRUE' \\&amp;gt;\n"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;);&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;new &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;HtmlString&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;(result.ToString());&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;public &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;static &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;HtmlString&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; EndSIMForm(&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;this&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;HtmlHelper&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; helper)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;new &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;HtmlString&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;(&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;"&amp;lt;/form&amp;gt;"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;);&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="Consolas" color="#808080"&gt;&lt;FONT size="2" face="Consolas" color="#808080"&gt;&lt;FONT size="2" face="Consolas" color="#808080"&gt;///&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#808080"&gt;&lt;FONT size="2" face="Consolas" color="#808080"&gt;&lt;FONT size="2" face="Consolas" color="#808080"&gt;&amp;lt;summary&amp;gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="Consolas" color="#808080"&gt;&lt;FONT size="2" face="Consolas" color="#808080"&gt;&lt;FONT size="2" face="Consolas" color="#808080"&gt;///&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#008000"&gt;&lt;FONT size="2" face="Consolas" color="#008000"&gt;&lt;FONT size="2" face="Consolas" color="#008000"&gt; Wraps CheckoutFormBuilders.CheckoutFormInputs returning HtmlString to avoid unwanted encoding.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="Consolas" color="#808080"&gt;&lt;FONT size="2" face="Consolas" color="#808080"&gt;&lt;FONT size="2" face="Consolas" color="#808080"&gt;///&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#808080"&gt;&lt;FONT size="2" face="Consolas" color="#808080"&gt;&lt;FONT size="2" face="Consolas" color="#808080"&gt;&amp;lt;/summary&amp;gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;public &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;static &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;HtmlString&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; AuthnetCheckoutFormInputs(&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;this&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;HtmlHelper&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; helper, &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;bool&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; isTest = &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;false&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt; inputs = &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AuthorizeNet.Helpers.&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;CheckoutFormBuilders&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;.CheckoutFormInputs(helper, isTest);&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;new &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;&lt;FONT size="2" face="Consolas" color="#2b91af"&gt;HtmlString&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;( inputs );&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the View:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @Html.StartSIMForm(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Model.ResponseUrl,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Model.AuthorizationRequest.Amount,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Model.AuthorizationRequest.Credentials.LoginId,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Model.AuthorizationRequest.Credentials.TransactionKey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Model.AuthorizationRequest.Credentials.IsTestMode)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @Html.AuthnetCheckoutFormInputs(Model.AuthorizationRequest.Credentials.IsTestMode)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @Html.Hidden(&lt;FONT size="2" face="Consolas" color="#a31515"&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;&lt;FONT size="2" face="Consolas" color="#a31515"&gt;"order_id"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;, Model.AuthorizationRequest.OrderId)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#800000"&gt;&lt;FONT size="2" face="Consolas" color="#800000"&gt;&lt;FONT size="2" face="Consolas" color="#800000"&gt;div &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#ff0000"&gt;&lt;FONT size="2" face="Consolas" color="#ff0000"&gt;&lt;FONT size="2" face="Consolas" color="#ff0000"&gt;id&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;="price-button"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#ff0000"&gt;&lt;FONT size="2" face="Consolas" color="#ff0000"&gt;&lt;FONT size="2" face="Consolas" color="#ff0000"&gt;style&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;="&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#ff0000"&gt;&lt;FONT size="2" face="Consolas" color="#ff0000"&gt;&lt;FONT size="2" face="Consolas" color="#ff0000"&gt;clear&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;:&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;both&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#ff0000"&gt;&lt;FONT size="2" face="Consolas" color="#ff0000"&gt;&lt;FONT size="2" face="Consolas" color="#ff0000"&gt;margin-bottom&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;:&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;10px&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#ff0000"&gt;&lt;FONT size="2" face="Consolas" color="#ff0000"&gt;&lt;FONT size="2" face="Consolas" color="#ff0000"&gt;margin-top&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;:&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;5px"&amp;gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#800000"&gt;&lt;FONT size="2" face="Consolas" color="#800000"&gt;&lt;FONT size="2" face="Consolas" color="#800000"&gt;input &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#ff0000"&gt;&lt;FONT size="2" face="Consolas" color="#ff0000"&gt;&lt;FONT size="2" face="Consolas" color="#ff0000"&gt;type&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;="submit" &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#ff0000"&gt;&lt;FONT size="2" face="Consolas" color="#ff0000"&gt;&lt;FONT size="2" face="Consolas" color="#ff0000"&gt;value&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;="Submit Payment"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;/&amp;gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#800000"&gt;&lt;FONT size="2" face="Consolas" color="#800000"&gt;&lt;FONT size="2" face="Consolas" color="#800000"&gt;div&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&lt;FONT size="2" face="Consolas" color="#0000ff"&gt;&amp;gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @Html.EndSIMForm()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2014 14:16:24 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Direct-Post-with-Razor-and-MVC-4/m-p/39944#M21740</guid>
      <dc:creator>tsorelle</dc:creator>
      <dc:date>2014-03-21T14:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Direct Post with Razor and MVC 4</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Direct-Post-with-Razor-and-MVC-4/m-p/39964#M21749</link>
      <description>I have not looked at the quick start example for direct post specifically but I do work with MVC 4 and authorize a lot. Most of the Authorize examples are very informative but you generally you have to pull out the principals and apply it to your situation. I like MVC4 once I got into using it. My suggestion would be; 2. Use the controller to do all the work. Pass the data from the form to the controller and make the call to the authorize server from the controller. Once you get the response you can display it on the same form or redirect them to different page. if interested and need more info i can more detailed</description>
      <pubDate>Fri, 21 Mar 2014 17:40:14 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Direct-Post-with-Razor-and-MVC-4/m-p/39964#M21749</guid>
      <dc:creator>glerler</dc:creator>
      <dc:date>2014-03-21T17:40:14Z</dc:date>
    </item>
  </channel>
</rss>

