In order to become PCI compliant, I'm changing my site to use a "hosted" PCI compliant page provide by my gateway/processor.
They have suggest that I execute the following:
<body>
<form id="form1" method="POST" action="https://test1.XXXXX.com/ecomh/main.aspx">
Transaction Amount:<br>
<input type="TEXT" name="TransactionAmount" value="1.00">
<input type="HIDDEN" name="RequestID" value="{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxxx}">
<input type="HIDDEN" name="PurchaseIdentifier1" value="ORDER-0003">
<input type="HIDDEN" name="PurchaseIdentifier2" value="Customer#25">
<input type="submit" value="Go to Payment Page">
</form>
</body>
How can I do this in DNN?
I have tried the code below. It opens a new window, but doesn't seem to be submitting the form.
Dim FormHTML As StringBuilder = New StringBuilder
Dim HTML As StringBuilder = New StringBuilder
HTML.Append("<SCRIPT LANGUAGE='JavaScript'>")
HTML.Append("var newWin = window.open("""", ""NewWin"", ""width=600,height=400,scrollbars=1,resizable=1"");")
HTML.Append(ControlChars.CrLf)
HTML.Append("newWin.document.open();")
HTML.Append(ControlChars.CrLf)
HTML.Append("newWin.document.write('")
FormHTML.Append("<html><body><form name=""AutoForm"" method=""post"" action=""https://test1.xxxxxxxxx.com/ecomh/main.aspx"">")
FormHTML.Append("<input type=""hidden"" name=""TransactionAmount"" value=""1.00"" "">")
FormHTML.Append("<input type=""hidden"" name=""ECOMRequestID"" value=""{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}"" "">")
FormHTML.Append("<input type=""hidden"" name=""PurchaseIdentifier1"" value=""ORDER-0005"" "">")
FormHTML.Append("<input type=""hidden"" name=""PurchaseIdentifier2"" value=""5555"" "">")
FormHTML.Append("<\/form>")
FormHTML.Append("<SCRIPT LANGUAGE=""JavaScript"">document.getElementById(""AutoForm"").submit();<\/SCRIPT>")
FormHTML.Append("<\/body><\/html>")
HTML.Append(FormHTML.ToString)
HTML.Append("');")
HTML.Append(ControlChars.CrLf)
HTML.Append("newWin.document.close();")
HTML.Append(ControlChars.CrLf)
HTML.Append("</SCRIPT>")
Response.Write(HTML.ToString)