<?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: SIM Relay Response Redirect results in a 404 error in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/SIM-Relay-Response-Redirect-results-in-a-404-error/m-p/39826#M21682</link>
    <description>&lt;P&gt;Thank you for the assistance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Are you using https? are you using the absolute path on the response.redirect?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Yes to https, and yes the response.redirect was going to an absolute path beginning with &lt;A target="_blank" href="https://www"&gt;https://www&lt;/A&gt;.. full URL to specific page.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Do a javascript redirect instead on a code behind Response.redirect.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am still trying to figure out how to do this in my specific configuration.&amp;nbsp; Let me elaborate and then hopefully you can help me because at the moment I am stuck.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;And you have the&amp;nbsp;EnableViewStateMac set to false?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have not modified this setting, so it's current state is probably true if that is the default setting&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The reason it relay response is like doing a webrequest on your page and using that info to display it on test.authorize.net website.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far I have done the following:&lt;/P&gt;&lt;P&gt;1) comment out&amp;nbsp;the response.redirect.&amp;nbsp; After this, there is no longer a 404 error.&lt;/P&gt;&lt;P&gt;If I place a static URL a href =xxx on the aspx page, then it will display on the authorize.net server as you stated, no error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My current problem is that I need to build the URL dynamically, and then display it for the user to click.&amp;nbsp; Ideally I would like to automatically redirect the user, but at this point I'll take what I can get because this is the last step in my implementation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What&amp;nbsp;I have tried so far is to create a variable in my code-behind that stores the full URL.&lt;/P&gt;&lt;P&gt;On the aspx page I tried to display at as follows: a href="&amp;lt;%= redirectURL %&amp;gt;"&amp;gt;some text here&amp;lt;end a tag&amp;gt;&lt;/P&gt;&lt;P&gt;WHen I try to do the above, I get a timeout error on the page (as opposed to the 404).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even if I do a javascript redirect,&amp;nbsp;I would still like to append a dynamic query string to it ?key=val, before redirecting back to my biz app.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just for full disclosure, on the Relay Response URL I do have business logic that interacts with the biz app server.&amp;nbsp; This all works great.&amp;nbsp; The final step is simply to bring the user back to the biz app web server via a redirect (or link if need be) with the dynamic URL I build on the code behind page.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I admit my asp is very rusty, so some of this is probably easy to someone who has been working with asp.net more frequently than me.&amp;nbsp; Thanks in advance for any assistance you can provide.&lt;/P&gt;</description>
    <pubDate>Thu, 13 Mar 2014 19:39:58 GMT</pubDate>
    <dc:creator>rvonschoech</dc:creator>
    <dc:date>2014-03-13T19:39:58Z</dc:date>
    <item>
      <title>SIM Relay Response Redirect results in a 404 error</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/SIM-Relay-Response-Redirect-results-in-a-404-error/m-p/39778#M21659</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have integrated using SIM.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have enabled Relay Response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my web architecture, I have two web applications.&amp;nbsp; My main business application, and a middle-ware web application to support the payment integration between the biz app and the gateway.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I complete a payment on the hosted payment page, the Relay Response posts to the Relay Response URL on my web application just fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The final step on the Relay Response URL page is to redirect back to my biz app page.&amp;nbsp; For some reason this fails with a 404 error, and in the browser address field the Payment Gateway URL is displayed. &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;The code is simply Response.Redirect(url here) in vb.net (asp.net).&amp;nbsp; The literal URL for the redirect works just fine if I paste it into my browser in the public internet, so it's not a URL issue.&amp;nbsp; I can't see a reason for the 404 unless the gateway is refusing to redirect to my page or can't for some reason.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas what could be causing this?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Mar 2014 04:13:54 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/SIM-Relay-Response-Redirect-results-in-a-404-error/m-p/39778#M21659</guid>
      <dc:creator>rvonschoech</dc:creator>
      <dc:date>2014-03-12T04:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: SIM Relay Response Redirect results in a 404 error</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/SIM-Relay-Response-Redirect-results-in-a-404-error/m-p/39780#M21660</link>
      <description>&lt;P&gt;do a javascript redirect instead on a code behind Response.redirect.&lt;/P&gt;&lt;P&gt;The reason it relay response is like doing a webrequest on your page and using that info to display it on test.authorize.net website.&lt;/P&gt;&lt;P&gt;Are you using https? are you using the absolute path on the response.redirect?&lt;/P&gt;&lt;P&gt;And you have the&amp;nbsp;EnableViewStateMac set to false?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Mar 2014 11:18:15 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/SIM-Relay-Response-Redirect-results-in-a-404-error/m-p/39780#M21660</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2014-03-12T11:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: SIM Relay Response Redirect results in a 404 error</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/SIM-Relay-Response-Redirect-results-in-a-404-error/m-p/39826#M21682</link>
      <description>&lt;P&gt;Thank you for the assistance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Are you using https? are you using the absolute path on the response.redirect?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Yes to https, and yes the response.redirect was going to an absolute path beginning with &lt;A target="_blank" href="https://www"&gt;https://www&lt;/A&gt;.. full URL to specific page.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Do a javascript redirect instead on a code behind Response.redirect.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am still trying to figure out how to do this in my specific configuration.&amp;nbsp; Let me elaborate and then hopefully you can help me because at the moment I am stuck.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;And you have the&amp;nbsp;EnableViewStateMac set to false?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have not modified this setting, so it's current state is probably true if that is the default setting&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The reason it relay response is like doing a webrequest on your page and using that info to display it on test.authorize.net website.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far I have done the following:&lt;/P&gt;&lt;P&gt;1) comment out&amp;nbsp;the response.redirect.&amp;nbsp; After this, there is no longer a 404 error.&lt;/P&gt;&lt;P&gt;If I place a static URL a href =xxx on the aspx page, then it will display on the authorize.net server as you stated, no error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My current problem is that I need to build the URL dynamically, and then display it for the user to click.&amp;nbsp; Ideally I would like to automatically redirect the user, but at this point I'll take what I can get because this is the last step in my implementation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What&amp;nbsp;I have tried so far is to create a variable in my code-behind that stores the full URL.&lt;/P&gt;&lt;P&gt;On the aspx page I tried to display at as follows: a href="&amp;lt;%= redirectURL %&amp;gt;"&amp;gt;some text here&amp;lt;end a tag&amp;gt;&lt;/P&gt;&lt;P&gt;WHen I try to do the above, I get a timeout error on the page (as opposed to the 404).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even if I do a javascript redirect,&amp;nbsp;I would still like to append a dynamic query string to it ?key=val, before redirecting back to my biz app.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just for full disclosure, on the Relay Response URL I do have business logic that interacts with the biz app server.&amp;nbsp; This all works great.&amp;nbsp; The final step is simply to bring the user back to the biz app web server via a redirect (or link if need be) with the dynamic URL I build on the code behind page.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I admit my asp is very rusty, so some of this is probably easy to someone who has been working with asp.net more frequently than me.&amp;nbsp; Thanks in advance for any assistance you can provide.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2014 19:39:58 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/SIM-Relay-Response-Redirect-results-in-a-404-error/m-p/39826#M21682</guid>
      <dc:creator>rvonschoech</dc:creator>
      <dc:date>2014-03-13T19:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: SIM Relay Response Redirect results in a 404 error</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/SIM-Relay-Response-Redirect-results-in-a-404-error/m-p/39828#M21683</link>
      <description>&lt;P&gt;What&amp;nbsp;I have tried so far is to create a variable in my code-behind that stores the full URL.&lt;/P&gt;&lt;P&gt;On the aspx page I tried to display at as follows: a href="&amp;lt;%= redirectURL %&amp;gt;"&amp;gt;some text here&amp;lt;end a tag&amp;gt;&lt;/P&gt;&lt;P&gt;WHen I try to do the above, I get a timeout error on the page (as opposed to the 404).&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;Set the EnableViewStateMac to false, set in on the relay response url page, some said set it on the form that post to authorize.net too.&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then use ClientScript.RegisterStartupScript on the page_load,&lt;/P&gt;&lt;P&gt;ClientScript.RegisterStartupScript(this.GetType(), "scriptid", window.parent.location.href='xxxxxxx'", true);&lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2014 20:15:46 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/SIM-Relay-Response-Redirect-results-in-a-404-error/m-p/39828#M21683</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2014-03-13T20:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: SIM Relay Response Redirect results in a 404 error</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/SIM-Relay-Response-Redirect-results-in-a-404-error/m-p/39838#M21688</link>
      <description>&lt;P&gt;I have set the EnableViewStateMac to false on both the posting page, and the response page.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am just having no luck getting a redirect to work DYNAMICALLY.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try to use the client script manager, I get an email saying the transaction times out and Authorize displays text indicating the payment was successful, but notify the merchant because an error occurred.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See below, all I'm trying to do with this is write out some javascript functions, just as a test.&amp;nbsp; The html on the aspx does not use these in any way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I comment out the registerstartup and registert client calls, my page displays without error on the authorize server after successful payment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Dim CSM As ClientScriptManager = Page.ClientScript

Dim redirectJavascript As String = ""
Dim regBlockTest As String = ""

redirectJavascript = "function test1(){window.location='&lt;A target="_blank" href="http://www.yahoo.com'}&amp;quot;"&gt;http://www.yahoo.com'}"&lt;/A&gt;

regBlockTest = "function test2(){window.location='&lt;A target="_blank" href="http://www.yahoo.com'}&amp;quot;"&gt;http://www.yahoo.com'}"&lt;/A&gt;


CSM.RegisterStartupScript(Me.GetType(), "redirect1", redirectJavascript, True)

CSM.RegisterClientScriptBlock(Me.GetType(), "redirect2", regBlockTest, False)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I update my html on the aspx page with the following, the redirect works like a charm, but I can only use a static url, I can't set it dynamically.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;body onload = "window.location= https://xxxx"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone successfully used the RegisterStartupScript with Relay Response?&amp;nbsp; Would it be possible for me to see a simple code sample of how it was accomplished?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2014 01:42:29 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/SIM-Relay-Response-Redirect-results-in-a-404-error/m-p/39838#M21688</guid>
      <dc:creator>rvonschoech</dc:creator>
      <dc:date>2014-03-14T01:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: SIM Relay Response Redirect results in a 404 error</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/SIM-Relay-Response-Redirect-results-in-a-404-error/m-p/39842#M21690</link>
      <description>&lt;PRE&gt;CSM.RegisterClientScriptBlock(Me.GetType(), "redirect2", regBlockTest, False)&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Should be True on the last param, cause your regBlockTest didn't have the &amp;lt;script /&amp;gt; tag.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Shouldn't need both, just keep the&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;CSM.RegisterStartupScript(Me.GetType(), "redirect1", redirectJavascript, True)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2014 11:22:14 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/SIM-Relay-Response-Redirect-results-in-a-404-error/m-p/39842#M21690</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2014-03-14T11:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: SIM Relay Response Redirect results in a 404 error</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/SIM-Relay-Response-Redirect-results-in-a-404-error/m-p/39862#M21700</link>
      <description>&lt;P&gt;Thanks.&amp;nbsp; In order to test this more cleanly, I have created a brand new Relay Response page.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the @Page directive I have set enableviewstatemac = false.&amp;nbsp; My page is below.&lt;/P&gt;&lt;PRE&gt;&amp;lt;%@ EnableViewStateMac="False" Page Language="vb" AutoEventWireup="false" CodeBehind="PaymentResponse2.aspx.vb" Inherits="ACAPaymentAdapter.PaymentResponse2" %&amp;gt;

&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "&lt;A target="_blank" href="https://community.developer.cybersource.com/"&gt;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&amp;gt;&lt;/A&gt;

&amp;lt;html xmlns="&lt;A target="_blank" href="https://community.developer.cybersource.com/"&gt;http://www.w3.org/1999/xhtml"&amp;gt;&lt;/A&gt;
&amp;lt;head runat="server"&amp;gt;
    &amp;lt;title&amp;gt;This is Payment Response 2 used for testing&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;form id="form1" runat="server"&amp;gt;
    &amp;lt;div&amp;gt;
    
    &amp;lt;/div&amp;gt;
    &amp;lt;/form&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/PRE&gt;&lt;P&gt;Could the tag runat=server statements be a problem?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Edit: I removed the runat=server declarations and it didn't change anything).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code-behind:&lt;/P&gt;&lt;PRE&gt;Public Class PaymentResponse2
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        'Use for javascript redirect
        Dim CSM As ClientScriptManager = Page.ClientScript

        Dim redirectJavascript As String = ""
        redirectJavascript = "function test1(){window.location='&lt;A target="_blank" href="http://www.yahoo.com'}&amp;quot;"&gt;http://www.yahoo.com'}"&lt;/A&gt;

        CSM.RegisterStartupScript(Me.GetType(), "redirect1", redirectJavascript, True)

    End Sub

End Class&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My page does not display and I receive the following error:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;EM&gt;An error occurred while trying to report this transaction to the merchant. An e-mail has been sent to the merchant informing them of the error. The following is the result of the attempt to charge your credit card. &lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;This transaction has been approved.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;EM&gt;It is advisable for you to contact the merchant to verify that you will receive the product or service.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the merchant email, I receive the following:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;EM&gt;Your script timed out while we were trying to post transaction results to it.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; Transaction ID: 2208265511&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;EM&gt;Transaction Result: This transaction has been approved.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;I appreciate all your help.&amp;nbsp; At this point, should I try and call Authorize.NET for assistance?&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2014 20:39:39 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/SIM-Relay-Response-Redirect-results-in-a-404-error/m-p/39862#M21700</guid>
      <dc:creator>rvonschoech</dc:creator>
      <dc:date>2014-03-14T20:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: SIM Relay Response Redirect results in a 404 error</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/SIM-Relay-Response-Redirect-results-in-a-404-error/m-p/39868#M21703</link>
      <description>&lt;P&gt;Did it run if you put the relay response url in a browser?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And if you remove the code in Page_Load&lt;/P&gt;&lt;P&gt;the page show up fine in relay response?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just try it with my test account C# code, forgot to set the enableviewstatemac the first time, but set it on the 2nd and it work fine.&lt;/P&gt;&lt;P&gt;protected void Page_Load(object sender, EventArgs e)&lt;BR /&gt;{&lt;BR /&gt;string redirectJavascript&amp;nbsp; =&amp;nbsp; "function test1(){window.location='&lt;A target="_blank" href="http://www.yahoo.com'}&amp;quot;;"&gt;http://www.yahoo.com'}";&lt;/A&gt;&lt;BR /&gt;Page.ClientScript.RegisterStartupScript(Page.GetType(), "redirect1", redirectJavascript, true);&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2014 21:20:58 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/SIM-Relay-Response-Redirect-results-in-a-404-error/m-p/39868#M21703</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2014-03-14T21:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: SIM Relay Response Redirect results in a 404 error</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/SIM-Relay-Response-Redirect-results-in-a-404-error/m-p/39872#M21705</link>
      <description>&lt;P&gt;Ok, I went to the page directly and found that I have an error because I messed up the @ page directive.&amp;nbsp; Page should be right after the @ below.&amp;nbsp; I can't test this again until Monday.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;%@ EnableViewStateMac="False" Page&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2014 21:31:46 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/SIM-Relay-Response-Redirect-results-in-a-404-error/m-p/39872#M21705</guid>
      <dc:creator>rvonschoech</dc:creator>
      <dc:date>2014-03-14T21:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: SIM Relay Response Redirect results in a 404 error</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/SIM-Relay-Response-Redirect-results-in-a-404-error/m-p/39876#M21707</link>
      <description>&lt;P&gt;Ok, was able to do the update.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;And if you remove the code in Page_Load&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;the page show up fine in relay response?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;It does now, yes.&amp;nbsp; This is what I get when I view source.&lt;/P&gt;&lt;PRE&gt;&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "&lt;A target="_blank" href="https://community.developer.cybersource.com/"&gt;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&amp;gt;&lt;/A&gt;

&amp;lt;html xmlns="&lt;A target="_blank" href="https://community.developer.cybersource.com/"&gt;http://www.w3.org/1999/xhtml"&amp;gt;&lt;/A&gt;
&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;
	This is Payment Response 2 used for testing
&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;form name="form1" method="post" action="PaymentResponse2.aspx" id="form1"&amp;gt;
&amp;lt;div&amp;gt;
&amp;lt;input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUJNzgzNDMwNTMzZGQ=" /&amp;gt;
&amp;lt;/div&amp;gt;

    &amp;lt;div&amp;gt;
    
    &amp;lt;/div&amp;gt;
    

&amp;lt;script type="text/javascript"&amp;gt;
//&amp;lt;![CDATA[
function test1(){window.location='&lt;A target="_blank" href="https://community.developer.cybersource.com/"&gt;http://www.yahoo.com'}//]]&amp;gt;&lt;/A&gt;
&amp;lt;/script&amp;gt;
&amp;lt;/form&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Just try it with my test account C# code, forgot to set the enableviewstatemac the first time, but set it on the 2nd and it work fine.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;protected void Page_Load(object sender, EventArgs e) { string redirectJavascript&amp;nbsp; =&amp;nbsp; "function test1(){window.location='&lt;A href="http://www.yahoo.com'%7d%22;/" target="_blank" rel="nofollow"&gt;http://www.yahoo.com'}";&lt;/A&gt; Page.ClientScript.RegisterStartupScript(Page.GetType(), "redirect1", redirectJavascript, true); }&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I need to figure out why this script code is not writing out to my non-test page.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2014 22:38:16 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/SIM-Relay-Response-Redirect-results-in-a-404-error/m-p/39876#M21707</guid>
      <dc:creator>rvonschoech</dc:creator>
      <dc:date>2014-03-14T22:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: SIM Relay Response Redirect results in a 404 error</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/SIM-Relay-Response-Redirect-results-in-a-404-error/m-p/39878#M21708</link>
      <description>&lt;P&gt;Do you know how much time there is before an actual time out would occur?&amp;nbsp; Could it simply be that my business logic is taking too long that by the time the script writes out there is an actual timeout?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2014 22:41:08 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/SIM-Relay-Response-Redirect-results-in-a-404-error/m-p/39878#M21708</guid>
      <dc:creator>rvonschoech</dc:creator>
      <dc:date>2014-03-14T22:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: SIM Relay Response Redirect results in a 404 error</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/SIM-Relay-Response-Redirect-results-in-a-404-error/m-p/39880#M21709</link>
      <description>&lt;P&gt;they give it 10 sec before a timeout.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so you test page did write out the&lt;/P&gt;&lt;PRE&gt;&amp;lt;script type="text/javascript"&amp;gt;
//&amp;lt;![CDATA[
function test1(){window.location='&lt;A href="https://community.developer.cybersource.com/t5/forums/replypage/board-id/Integration01/message-id/21707" target="_blank" rel="nofollow"&gt;http://www.yahoo.com'}//]]&amp;gt;&lt;/A&gt;
&amp;lt;/script&amp;gt;&lt;/PRE&gt;&lt;P&gt;now? The great, at least we getting something to work on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;on your production page relay response page, do you show any form value with the same name as authorize.net response name? that would be an issue&lt;/P&gt;&lt;P&gt;ie &amp;lt;INPUT TYPE="text" name=”&lt;FONT color="#FF0000"&gt;x_response_code&lt;/FONT&gt;” VALUE=”&lt;SPAN&gt;value of the field&lt;/SPAN&gt;”&amp;gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2014 23:05:08 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/SIM-Relay-Response-Redirect-results-in-a-404-error/m-p/39880#M21709</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2014-03-14T23:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: SIM Relay Response Redirect results in a 404 error</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/SIM-Relay-Response-Redirect-results-in-a-404-error/m-p/39882#M21710</link>
      <description>&lt;P&gt;and are you using ssl on the relay response page? they not supporting SHA2 certificates&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2014 23:10:24 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/SIM-Relay-Response-Redirect-results-in-a-404-error/m-p/39882#M21710</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2014-03-14T23:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: SIM Relay Response Redirect results in a 404 error</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/SIM-Relay-Response-Redirect-results-in-a-404-error/m-p/40016#M21775</link>
      <description>&lt;PRE&gt;&amp;lt;%@ Page EnableViewStateMac="False" Language="vb" AutoEventWireup="false" CodeBehind="PaymentRedirect.aspx.vb" Inherits="ACAPaymentAdapter.PaymentRedirect" %&amp;gt;

&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "&lt;A target="_blank" href="https://community.developer.cybersource.com/"&gt;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&amp;gt;&lt;/A&gt;

&amp;lt;html xmlns="&lt;A target="_blank" href="https://community.developer.cybersource.com/"&gt;http://www.w3.org/1999/xhtml"&amp;gt;&lt;/A&gt;
&amp;lt;head runat="server"&amp;gt;
    &amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body onload="window.parent.location='&lt;A target="_blank" href="https://community.developer.cybersource.com/"&gt;https://www.google.com'"&amp;gt;&lt;/A&gt;
If you are not automatically redirected, please click below to complete your transaction.  If you do not redirect or click the button, your transaction will not be completed.
    &amp;lt;form id="form1" runat="server"&amp;gt;
    &amp;lt;div&amp;gt;
    &amp;lt;input type=button value="Click here to complete your transaction." onclick="window.parent.location='&lt;A target="_blank" href="https://www.google.com'&amp;quot;"&gt;https://www.google.com'"&lt;/A&gt; &amp;gt;    
    &amp;lt;/div&amp;gt;
    &amp;lt;/form&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ok, I did get the redirect to work, but now the problem is that it's inconsistent.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At this point in time, above is what my Redirect.aspx page looks like.&amp;nbsp; The code-behind has no active code in the page load (all commented out).&amp;nbsp; There are 2 functions defined in the Page class object, but again, they are not executed, they are just there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the Authorize.NET testing environment, even this simple page is causing a timeout message on the authorize.net site RANDOMLY.&amp;nbsp; It is not consistent.&amp;nbsp; However, if I go directly to my page, this simple redirect works without a problem.&amp;nbsp; As you can see, all it does is send you to google's website.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The merchant email shows this error: "&lt;SPAN style="font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;Your script timed out while we were trying to&lt;BR /&gt;post transaction results to it.&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What could be going on that would cause this to timeout?&amp;nbsp; At this point, the only thing happening is a redirect on the body onload event?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Should I try testing on the Live site in "test mode"?&amp;nbsp; Could it be that the test servers are not the same as the prod servers?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2014 00:44:02 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/SIM-Relay-Response-Redirect-results-in-a-404-error/m-p/40016#M21775</guid>
      <dc:creator>rvonschoech</dc:creator>
      <dc:date>2014-03-25T00:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: SIM Relay Response Redirect results in a 404 error</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/SIM-Relay-Response-Redirect-results-in-a-404-error/m-p/40018#M21776</link>
      <description>&lt;P&gt;The javascript redirect run on the client(browser), and not on authorize.net, so it wouldn't be the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Randomly? it is using ssl? I remember someone had an issue with the authorize.net web farm, where one or two server having issue with their ssl cert. When you said randomly, how did you test it? e.g. 10 in a row and 2 failed? or like 10 tried 15 min apart?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is a new register web site? There were some having issue with time-to-live setting&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://community.developer.authorize.net/t5/Integration-and-Testing/SIM-Relay-Response-Timeout/m-p/8206/highlight/true#M5644"&gt;http://community.developer.authorize.net/t5/Integration-and-Testing/SIM-Relay-Response-Timeout/m-p/8206/highlight/true#M5644&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2014 11:20:24 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/SIM-Relay-Response-Redirect-results-in-a-404-error/m-p/40018#M21776</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2014-03-25T11:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: SIM Relay Response Redirect results in a 404 error</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/SIM-Relay-Response-Redirect-results-in-a-404-error/m-p/40028#M21781</link>
      <description>&lt;P&gt;The javascript redirect run on the client(browser), and not on authorize.net, so it wouldn't be the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Randomly? it is using ssl? I remember someone had an issue with the authorize.net web farm, where one or two server having issue with their ssl cert. When you said randomly, how did you test it? e.g. 10 in a row and 2 failed? or like 10 tried 15 min apart?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I spent a good 25-30 minutes running tests this morning, just back to back payments.&amp;nbsp; I had a successful redirect to google first 2 out of 10 tries.&amp;nbsp; Then things seemed to pick up and I had 8 out of 18 successful (so 6 out of the last 8 were successful, but there were still a few intermittent errors in there).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My site is using SSL.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is a new register web site? There were some having issue with time-to-live setting&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="https://community.developer.cybersource.com/t5/Integration-and-Testing/SIM-Relay-Response-Timeout/m-p/8206/highlight/true#M5644"&gt;http://community.developer.authorize.net/t5/Integration-and-Testing/SIM-Relay-Response-Timeout/m-p/8...&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Do you mean newly registered DNS name?&amp;nbsp; I will find out.&amp;nbsp; How much time would be considered "new"?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks for the link.&amp;nbsp; I will try and find out if I have control over the Time to Live setting.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2014 18:20:12 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/SIM-Relay-Response-Redirect-results-in-a-404-error/m-p/40028#M21781</guid>
      <dc:creator>rvonschoech</dc:creator>
      <dc:date>2014-03-25T18:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: SIM Relay Response Redirect results in a 404 error</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/SIM-Relay-Response-Redirect-results-in-a-404-error/m-p/40036#M21785</link>
      <description>&lt;P&gt;Can you try without the https?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2014 12:26:58 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/SIM-Relay-Response-Redirect-results-in-a-404-error/m-p/40036#M21785</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2014-03-26T12:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: SIM Relay Response Redirect results in a 404 error</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/SIM-Relay-Response-Redirect-results-in-a-404-error/m-p/40056#M21795</link>
      <description>&lt;P&gt;I don't have full control over the server I'm using, but I'll see if I can set up a test using http.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, with respect to the Time To Live setting ... I have asked about&amp;nbsp;the DNS servers, and this was the response regarding the Time To Live setting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I spoke with the admin for that server. He confirmed it is one of ours.&amp;nbsp; He told me that there is no TTL setting being used and that the DNS entries use a 1 gigabyte cache which typically covers well over 1 week.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2014 23:22:16 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/SIM-Relay-Response-Redirect-results-in-a-404-error/m-p/40056#M21795</guid>
      <dc:creator>rvonschoech</dc:creator>
      <dc:date>2014-03-26T23:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: SIM Relay Response Redirect results in a 404 error</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/SIM-Relay-Response-Redirect-results-in-a-404-error/m-p/40078#M21806</link>
      <description>&lt;P&gt;Today I was able to remove the httpS from my relay response page.&amp;nbsp; I performed about 6-7 successful payment transactions in a row.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I think we've found the issue, however ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is it still possible to use https?&amp;nbsp; I don't know if my customer wants the payment transaction results to be returned in an unsecure manner.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a solution for this?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2014 17:51:10 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/SIM-Relay-Response-Redirect-results-in-a-404-error/m-p/40078#M21806</guid>
      <dc:creator>rvonschoech</dc:creator>
      <dc:date>2014-03-27T17:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: SIM Relay Response Redirect results in a 404 error</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/SIM-Relay-Response-Redirect-results-in-a-404-error/m-p/40082#M21808</link>
      <description>&lt;P&gt;Your issue may be explained in&amp;nbsp;&lt;A href="https://community.developer.cybersource.com/t5/Integration-and-Testing/Sandbox-Support-for-SHA2-Certificates/td-p/40058" target="_blank"&gt;http://community.developer.authorize.net/t5/Integration-and-Testing/Sandbox-Support-for-SHA2-Certificates/td-p/40058.&lt;/A&gt; &amp;nbsp;I would suggest following that topic for updates.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2014 18:08:04 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/SIM-Relay-Response-Redirect-results-in-a-404-error/m-p/40082#M21808</guid>
      <dc:creator>RichardH</dc:creator>
      <dc:date>2014-03-27T18:08:04Z</dc:date>
    </item>
  </channel>
</rss>

