<?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: Redirecter not redirecting the client in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Redirecter-not-redirecting-the-client/m-p/12968#M7841</link>
    <description>&lt;P&gt;I just did a bare bone test. an order page, a relay response page and a redirect page. And it work fine for me.&lt;/P&gt;&lt;P&gt;It the address url still said '&lt;A href="https://test.authorize.net/gateway/transact.dll'?" target="_blank" rel="nofollow"&gt;https://test.authorize.net/gateway/transact.dll'?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Have you try just do&lt;/P&gt;&lt;PRE&gt; string returnUrl = AuthorizeNet.Helpers.CheckoutFormBuilders.Redirecter(webHelper.webHome + "orderComplete.aspx");
 Response.Write(returnUrl);&lt;/PRE&gt;&lt;P&gt;on the relay response page without anything else?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 18 May 2011 15:43:31 GMT</pubDate>
    <dc:creator>RaynorC1emen7</dc:creator>
    <dc:date>2011-05-18T15:43:31Z</dc:date>
    <item>
      <title>Redirecter not redirecting the client</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Redirecter-not-redirecting-the-client/m-p/12916#M7820</link>
      <description>&lt;P&gt;I'm using a bastardized version of DPM found &lt;A target="_self" href="http://community.developer.authorize.net/t5/Integration-and-Testing/Direct-Post-Method-DPM-code-sample-for-C-ASP-NET-web-forms-non/m-p/8574"&gt;here&lt;/A&gt; because my site was completely built without MVC before looking into Authorize.Net.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've got the entire thing working, except for the client redirect at the end of the transaction.&amp;nbsp; After peeling through some&lt;/P&gt;&lt;P&gt;of the source code and reviewing the documentation, I've put this together:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;public void Page_Load(object sender, EventArgs e)
    {


         AuthorizeNet.SIMResponse response = new AuthorizeNet.SIMResponse(Request.Form);
         bool isValid = response.Validate("hashinfo", "xxxxxxxxx");

         if (!isValid)
         {
              //put inValid response here
         }
         else
         {
           
             if (response.Approved)
             {
                 try
                 {
                     //the transaction went through--this is what my site does upon order completion
                     responseString = webHelper.completeTransaction(response.InvoiceNumber, this);


//This generates the JavaScript that is supposed to redirect the client&lt;BR /&gt;&amp;nbsp;                    string returnUrl = AuthorizeNet.Helpers.CheckoutFormBuilders.Redirecter(webHelper.webHome + "orderComplete.aspx");

//From what I understand, this should use the javascript generated above to redirect the client, but it doesn't work&lt;BR /&gt;                     Response.Write(returnUrl);
                 }
                 catch (Exception exp)
                 {
                     int afsd = 0;
                 }&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2011 03:24:22 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Redirecter-not-redirecting-the-client/m-p/12916#M7820</guid>
      <dc:creator>julio9</dc:creator>
      <dc:date>2011-05-17T03:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: Redirecter not redirecting the client</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Redirecter-not-redirecting-the-client/m-p/12920#M7822</link>
      <description>&lt;P&gt;Are you getting any error on the screen? Also is webHelper.webHome return something like "&lt;A rel="nofollow" target="_blank" href="http://www.yousite.com/"&gt;http://www.yousite.com/&lt;/A&gt;"&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2011 12:02:06 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Redirecter-not-redirecting-the-client/m-p/12920#M7822</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2011-05-17T12:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Redirecter not redirecting the client</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Redirecter-not-redirecting-the-client/m-p/12922#M7823</link>
      <description>&lt;P&gt;I get nothing.&amp;nbsp; No errors.&amp;nbsp; Nada.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And yes, the redirect string points to my site.&amp;nbsp; webHelper.webHome simply points to the root of my site.&amp;nbsp; Then I add the actual page.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2011 13:42:26 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Redirecter-not-redirecting-the-client/m-p/12922#M7823</guid>
      <dc:creator>julio9</dc:creator>
      <dc:date>2011-05-17T13:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: Redirecter not redirecting the client</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Redirecter-not-redirecting-the-client/m-p/12924#M7824</link>
      <description>&lt;P&gt;Did you check both isValid and response.Approved variables?&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2011 14:25:49 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Redirecter-not-redirecting-the-client/m-p/12924#M7824</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2011-05-17T14:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: Redirecter not redirecting the client</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Redirecter-not-redirecting-the-client/m-p/12928#M7825</link>
      <description>&lt;P&gt;Yes.&amp;nbsp; As posted above,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; if (!isValid)
         {
              //put inValid response here
         }
         else
         {
           
             if (response.Approved)
             {

...etc&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can step through the code, and it all works.&amp;nbsp; The only thing that doesn't work is the redirect.&amp;nbsp; The string is properly generated as well.&amp;nbsp; Everything just stops there.&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2011 17:16:56 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Redirecter-not-redirecting-the-client/m-p/12928#M7825</guid>
      <dc:creator>julio9</dc:creator>
      <dc:date>2011-05-17T17:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Redirecter not redirecting the client</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Redirecter-not-redirecting-the-client/m-p/12932#M7826</link>
      <description>&lt;P&gt;After the page finish loading. Did you check to page source(from the browser) to see if the script get written?&lt;/P&gt;&lt;P&gt;Let backup a little. It there a reason not to use Response.Redirect() from asp.net?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2011 20:13:25 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Redirecter-not-redirecting-the-client/m-p/12932#M7826</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2011-05-17T20:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: Redirecter not redirecting the client</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Redirecter-not-redirecting-the-client/m-p/12944#M7831</link>
      <description>&lt;P&gt;The documentation mentions that&amp;nbsp;Authorize.Net is expecting a reply to the&amp;nbsp;POST sent by&amp;nbsp;their server.&amp;nbsp; This reply is in the form of a URL that Authorize.Net will pass on to the client's browser to redirect them to the desired location using Javascript.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I did try the Response.Redirect, but it also ended with failure.&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2011 22:46:55 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Redirecter-not-redirecting-the-client/m-p/12944#M7831</guid>
      <dc:creator>julio9</dc:creator>
      <dc:date>2011-05-17T22:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: Redirecter not redirecting the client</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Redirecter-not-redirecting-the-client/m-p/12946#M7832</link>
      <description>&lt;P&gt;...and no, I didn't check the client's browser to see if the script is written.&amp;nbsp; I'll try that...&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2011 22:48:20 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Redirecter-not-redirecting-the-client/m-p/12946#M7832</guid>
      <dc:creator>julio9</dc:creator>
      <dc:date>2011-05-17T22:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Redirecter not redirecting the client</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Redirecter-not-redirecting-the-client/m-p/12958#M7836</link>
      <description>&lt;P&gt;Also, try adding Response.End(); and/or Response.Flush(); after the Response.Write();&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2011 23:49:19 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Redirecter-not-redirecting-the-client/m-p/12958#M7836</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2011-05-17T23:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: Redirecter not redirecting the client</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Redirecter-not-redirecting-the-client/m-p/12960#M7837</link>
      <description>&lt;P&gt;No dice.&amp;nbsp; This is driving me nuts.&amp;nbsp; I also checked the client browser, and tested throwing in a javascript alert to see if the information was being pushed to client at all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nothing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The POST comes across from Authorize.NET, and I can check it's validity and complete the transaction.&amp;nbsp; The final redirect is simply not working.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there another way to do this?&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2011 02:19:48 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Redirecter-not-redirecting-the-client/m-p/12960#M7837</guid>
      <dc:creator>julio9</dc:creator>
      <dc:date>2011-05-18T02:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: Redirecter not redirecting the client</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Redirecter-not-redirecting-the-client/m-p/12968#M7841</link>
      <description>&lt;P&gt;I just did a bare bone test. an order page, a relay response page and a redirect page. And it work fine for me.&lt;/P&gt;&lt;P&gt;It the address url still said '&lt;A href="https://test.authorize.net/gateway/transact.dll'?" target="_blank" rel="nofollow"&gt;https://test.authorize.net/gateway/transact.dll'?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Have you try just do&lt;/P&gt;&lt;PRE&gt; string returnUrl = AuthorizeNet.Helpers.CheckoutFormBuilders.Redirecter(webHelper.webHome + "orderComplete.aspx");
 Response.Write(returnUrl);&lt;/PRE&gt;&lt;P&gt;on the relay response page without anything else?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2011 15:43:31 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Redirecter-not-redirecting-the-client/m-p/12968#M7841</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2011-05-18T15:43:31Z</dc:date>
    </item>
  </channel>
</rss>

