<?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 Valid x_header_html_payment_form ? in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Valid-x-header-html-payment-form/m-p/34261#M18742</link>
    <description>&lt;P&gt;Hi again guys.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My customer is requesting me to customize the &lt;STRONG&gt;header&lt;/STRONG&gt; of&amp;nbsp; her &lt;STRONG&gt;hosted payment form&lt;/STRONG&gt; with a logo which leads to her homepage. I think the following little piece of code should fit nicely there:&lt;/P&gt;&lt;PRE&gt;&amp;lt;div style="text-align:right;"&amp;gt;
	&amp;lt;a href="&lt;A href="http://mysite.com" target="_blank"&gt;http://mysite.com&lt;/A&gt;" title="Home"&amp;gt;
		&amp;lt;img src="&lt;A href="http://mysite.com/images/logo.png" target="_blank"&gt;http://mysite.com/images/logo.png&lt;/A&gt;" alt="" /&amp;gt;
	&amp;lt;/a&amp;gt;
&amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, if I'm going to put that as the &lt;STRONG&gt;value&lt;/STRONG&gt; of this statement (to request hosted payment form):&lt;/P&gt;&lt;PRE&gt;&amp;lt;input type="hidden" name="x_header_html_payment_form" value=""/&amp;gt;&lt;/PRE&gt;&lt;P&gt;it might work, but that would be violating the validity of HTML, right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I tried to convert that header code into something like this:&lt;/P&gt;&lt;PRE&gt;&amp;amp;lt;div style=&amp;amp;quot;text-align:right;&amp;amp;quot;&amp;amp;gt;&amp;amp;lt;a href=&amp;amp;quot;&lt;A href="http://mysite.com&amp;amp;quot;" target="_blank"&gt;http://mysite.com&amp;amp;quot;&lt;/A&gt; title=&amp;amp;quot;Home&amp;amp;quot;&amp;amp;gt;&amp;amp;lt;img src=&amp;amp;quot;&lt;A href="http://mysite.com/images/logo.png&amp;amp;quot;" target="_blank"&gt;http://mysite.com/images/logo.png&amp;amp;quot;&lt;/A&gt; alt=&amp;amp;quot;&amp;amp;quot; /&amp;amp;gt;&amp;amp;lt;/a&amp;amp;gt;&amp;amp;lt;/div&amp;amp;gt;&lt;/PRE&gt;&lt;P&gt;and put that code as the value of that &amp;lt;input&amp;gt; statement. And it works!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The question is, is this legal/ allowed by Authorize.net? I failed to find a documentation or a thread here discussing this conversion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Hendra&lt;/P&gt;</description>
    <pubDate>Thu, 16 May 2013 19:10:33 GMT</pubDate>
    <dc:creator>hendra</dc:creator>
    <dc:date>2013-05-16T19:10:33Z</dc:date>
    <item>
      <title>Valid x_header_html_payment_form ?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Valid-x-header-html-payment-form/m-p/34261#M18742</link>
      <description>&lt;P&gt;Hi again guys.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My customer is requesting me to customize the &lt;STRONG&gt;header&lt;/STRONG&gt; of&amp;nbsp; her &lt;STRONG&gt;hosted payment form&lt;/STRONG&gt; with a logo which leads to her homepage. I think the following little piece of code should fit nicely there:&lt;/P&gt;&lt;PRE&gt;&amp;lt;div style="text-align:right;"&amp;gt;
	&amp;lt;a href="&lt;A href="http://mysite.com" target="_blank"&gt;http://mysite.com&lt;/A&gt;" title="Home"&amp;gt;
		&amp;lt;img src="&lt;A href="http://mysite.com/images/logo.png" target="_blank"&gt;http://mysite.com/images/logo.png&lt;/A&gt;" alt="" /&amp;gt;
	&amp;lt;/a&amp;gt;
&amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, if I'm going to put that as the &lt;STRONG&gt;value&lt;/STRONG&gt; of this statement (to request hosted payment form):&lt;/P&gt;&lt;PRE&gt;&amp;lt;input type="hidden" name="x_header_html_payment_form" value=""/&amp;gt;&lt;/PRE&gt;&lt;P&gt;it might work, but that would be violating the validity of HTML, right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I tried to convert that header code into something like this:&lt;/P&gt;&lt;PRE&gt;&amp;amp;lt;div style=&amp;amp;quot;text-align:right;&amp;amp;quot;&amp;amp;gt;&amp;amp;lt;a href=&amp;amp;quot;&lt;A href="http://mysite.com&amp;amp;quot;" target="_blank"&gt;http://mysite.com&amp;amp;quot;&lt;/A&gt; title=&amp;amp;quot;Home&amp;amp;quot;&amp;amp;gt;&amp;amp;lt;img src=&amp;amp;quot;&lt;A href="http://mysite.com/images/logo.png&amp;amp;quot;" target="_blank"&gt;http://mysite.com/images/logo.png&amp;amp;quot;&lt;/A&gt; alt=&amp;amp;quot;&amp;amp;quot; /&amp;amp;gt;&amp;amp;lt;/a&amp;amp;gt;&amp;amp;lt;/div&amp;amp;gt;&lt;/PRE&gt;&lt;P&gt;and put that code as the value of that &amp;lt;input&amp;gt; statement. And it works!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The question is, is this legal/ allowed by Authorize.net? I failed to find a documentation or a thread here discussing this conversion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Hendra&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2013 19:10:33 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Valid-x-header-html-payment-form/m-p/34261#M18742</guid>
      <dc:creator>hendra</dc:creator>
      <dc:date>2013-05-16T19:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: Valid x_header_html_payment_form ?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Valid-x-header-html-payment-form/m-p/34265#M18746</link>
      <description>&lt;P&gt;There is a example here&lt;/P&gt;&lt;P&gt;&lt;A href="http://developer.authorize.net/guides/SIM/wwhelp/wwhimpl/js/html/wwhelp.htm#href=SIM_Submitting_transactions.html" target="_blank"&gt;http://developer.authorize.net/guides/SIM/wwhelp/wwhimpl/js/html/wwhelp.htm#href=SIM_Submitting_transactions.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Search on "Including a Style Sheet in the HTML Form POST"&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2013 19:45:02 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Valid-x-header-html-payment-form/m-p/34265#M18746</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2013-05-16T19:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: Valid x_header_html_payment_form ?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Valid-x-header-html-payment-form/m-p/34267#M18748</link>
      <description>&lt;P&gt;Thanks Raynor.&lt;/P&gt;&lt;P&gt;Yes I've read that too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But let me apply the example into an over-simplified fake request page, as follows:&lt;/P&gt;&lt;PRE&gt;&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "&lt;A href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" target="_blank"&gt;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&lt;/A&gt;"&amp;gt;
&amp;lt;html xmlns="&lt;A href="http://www.w3.org/1999/xhtml" target="_blank"&gt;http://www.w3.org/1999/xhtml&lt;/A&gt;"&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;title&amp;gt;request&amp;lt;/title&amp;gt;
&amp;lt;meta content="text/html; charset=utf-8" http-equiv="content-type" /&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;&lt;BR /&gt;&amp;lt;form action="&lt;A href="https://test.authorize.net/gateway/transact.dll" target="_blank"&gt;https://test.authorize.net/gateway/transact.dll&lt;/A&gt;" method="post"&amp;gt;&lt;BR /&gt;&amp;lt;p&amp;gt;
&amp;lt;input type="hidden" name="x_header_html_payment_form" value="&amp;lt;style type='text/css' media='all'&amp;gt; TD{font-family: arial, verdana,trebuchet,helvetica,geneva,sans-serif;font-size:11px; color:#000000;margin-left:1px;}INPUT{font-family:Arial,Verdana, Trebuchet,Helvetica,Geneva,sans-serif;font-size:11px;color: #000000;margin-left:1px;}&amp;lt;/style&amp;gt; Please enter your payment and shipping information." /&amp;gt;
&amp;lt;/p&amp;gt;&lt;BR /&gt;&amp;lt;/form&amp;gt;&lt;BR /&gt;&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;So if I bring that page to &lt;A href="http://validator.w3.org" target="_self"&gt;w3c validator&lt;/A&gt;, it would fail. They would report a couple errors like:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Unescaped '&amp;lt;' not allowed in attributes values &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;&lt;SPAN&gt;attributes construct error &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The only way to pass w3c validation is by converting those less-than, greater-than, and double-quotes into HTML character entities i.e. &amp;amp;lt; &amp;amp;gt; and &amp;amp;quot; respectively.&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2013 20:59:38 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Valid-x-header-html-payment-form/m-p/34267#M18748</guid>
      <dc:creator>hendra</dc:creator>
      <dc:date>2013-05-16T20:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Valid x_header_html_payment_form ?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Valid-x-header-html-payment-form/m-p/34268#M18749</link>
      <description>&lt;P&gt;does it works if you post it to authorize.net ?&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2013 21:14:18 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Valid-x-header-html-payment-form/m-p/34268#M18749</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2013-05-16T21:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: Valid x_header_html_payment_form ?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Valid-x-header-html-payment-form/m-p/34269#M18750</link>
      <description>&lt;P&gt;I didn't test the example from Authorize.net documentation, but for my logo with link... yes. As the input value, either this one:&lt;/P&gt;&lt;PRE&gt;&amp;amp;lt;div style=&amp;amp;quot;text-align:right;&amp;amp;quot;&amp;amp;gt;&amp;amp;lt;a href=&amp;amp;quot;&lt;A href="http://mysite.com&amp;amp;quot;" target="_blank"&gt;http://mysite.com&amp;amp;quot;&lt;/A&gt; title=&amp;amp;quot;Home&amp;amp;quot;&amp;amp;gt;&amp;amp;lt;img src=&amp;amp;quot;&lt;A href="http://mysite.com/images/logo.png&amp;amp;quot;" target="_blank"&gt;http://mysite.com/images/logo.png&amp;amp;quot;&lt;/A&gt; alt=&amp;amp;quot;&amp;amp;quot; /&amp;amp;gt;&amp;amp;lt;/a&amp;amp;gt;&amp;amp;lt;/div&amp;amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or this one:&lt;/P&gt;&lt;PRE&gt;&amp;lt;div style='text-align:right;'&amp;gt;&amp;lt;a href='&lt;A href="http://mysite.com'" target="_blank"&gt;http://mysite.com'&lt;/A&gt; title='Home'&amp;gt;&amp;lt;img src='&lt;A href="http://mysite.com/images/logo.png'" target="_blank"&gt;http://mysite.com/images/logo.png'&lt;/A&gt; alt='' /&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;would work well. Oh I guess I'm just making my own dilemma:)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which one would you chose anyway?&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2013 21:35:06 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Valid-x-header-html-payment-form/m-p/34269#M18750</guid>
      <dc:creator>hendra</dc:creator>
      <dc:date>2013-05-16T21:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: Valid x_header_html_payment_form ?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Valid-x-header-html-payment-form/m-p/34274#M18755</link>
      <description>&lt;P&gt;I would pick the second one. easier to read.&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2013 23:00:34 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Valid-x-header-html-payment-form/m-p/34274#M18755</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2013-05-16T23:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Valid x_header_html_payment_form ?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Valid-x-header-html-payment-form/m-p/34280#M18760</link>
      <description>&lt;P&gt;I appreciate your pick, Raynor.&lt;/P&gt;&lt;P&gt;But I decide to take the risk with the 1st.&lt;/P&gt;&lt;P&gt;Will report back here (hopefully not) whenever my method doesn't work any longer.&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2013 15:17:53 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Valid-x-header-html-payment-form/m-p/34280#M18760</guid>
      <dc:creator>hendra</dc:creator>
      <dc:date>2013-05-17T15:17:53Z</dc:date>
    </item>
  </channel>
</rss>

