<?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: Authorize.net not redirecting to my URL in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Authorize-net-not-redirecting-to-my-URL/m-p/34782#M19205</link>
    <description>&lt;P&gt;localhost is not a valid internet website.&lt;/P&gt;&lt;P&gt;Read&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.developer.cybersource.com/t5/The-Authorize-Net-Developer-Blog/Relay-Response-Basics-and-Troubleshooting/ba-p/9536" target="_self"&gt;Relay Response Basics and Troubleshooting&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jun 2013 12:43:32 GMT</pubDate>
    <dc:creator>RaynorC1emen7</dc:creator>
    <dc:date>2013-06-26T12:43:32Z</dc:date>
    <item>
      <title>Authorize.net not redirecting to my URL</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Authorize-net-not-redirecting-to-my-URL/m-p/34781#M19204</link>
      <description>&lt;P&gt;I was able to hit the payment gateway using direct post method using CardNotPresent account.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it was not redirecting to my website.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using localhost as my domain name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please find below code I am using for hiting payment gateway:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;%@ page import="net.authorize.sim.*" %&amp;gt;&lt;BR /&gt;&amp;lt;%&lt;BR /&gt;String apiLoginId = "XXX";&lt;BR /&gt;String transactionKey = "XXX";&lt;BR /&gt;String relayResponseUrl = "http://localhost:8080/PaymentGateway/response.jsp";&lt;/P&gt;&lt;P&gt;String amount = "1.99";&lt;BR /&gt;Fingerprint fingerprint = Fingerprint.createFingerprint(&lt;BR /&gt;apiLoginId,&lt;BR /&gt;transactionKey,&lt;BR /&gt;1234567890, // random sequence used for creating the finger print&lt;BR /&gt;amount);&lt;/P&gt;&lt;P&gt;long x_fp_sequence = fingerprint.getSequence();&lt;BR /&gt;long x_fp_timestamp = fingerprint.getTimeStamp();&lt;BR /&gt;String x_fp_hash = fingerprint.getFingerprintHash();&lt;BR /&gt;%&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;FORM NAME='secure_redirect_form' ID='secure_redirect_form_id'&lt;BR /&gt;ACTION='&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;&amp;nbsp;METHOD='POST'&amp;gt;&lt;BR /&gt;&amp;lt;label&amp;gt;CreditCardNumber&amp;lt;/label&amp;gt;&amp;lt;input type='text' class='text' name='x_card_num' size='15'&amp;gt;&lt;BR /&gt;&amp;lt;/input&amp;gt;&lt;BR /&gt;&amp;lt;br&amp;gt;&lt;BR /&gt;&amp;lt;label&amp;gt;Expiry Date&amp;lt;/label&amp;gt;&amp;lt;input type='text' class='text' name='x_exp_date' size='4'&amp;gt;&amp;lt;/input&amp;gt;&lt;BR /&gt;&amp;lt;br&amp;gt;&lt;BR /&gt;&amp;lt;label&amp;gt;Amount&amp;lt;/label&amp;gt;&amp;lt;input type='text' class='text' name='x_amount' size='9'&lt;BR /&gt;readonly value='&amp;lt;%=amount%&amp;gt;'&amp;gt;&amp;lt;/input&amp;gt;&lt;BR /&gt;&amp;lt;INPUT TYPE='HIDDEN' NAME='x_invoice_num' VALUE='&amp;lt;%=System.currentTimeMillis()%&amp;gt;'&amp;gt;&lt;BR /&gt;&amp;lt;INPUT TYPE='HIDDEN' NAME='x_relay_url' VALUE='&amp;lt;%=relayResponseUrl%&amp;gt;'&amp;gt;&lt;BR /&gt;&amp;lt;INPUT TYPE='HIDDEN' NAME='x_relay_response' VALUE='TRUE'&amp;gt;&lt;BR /&gt;&amp;lt;INPUT TYPE='HIDDEN' NAME='x_login' VALUE='&amp;lt;%=apiLoginId%&amp;gt;'&amp;gt;&lt;BR /&gt;&amp;lt;INPUT TYPE='HIDDEN' NAME='x_fp_sequence' VALUE='&amp;lt;%=x_fp_sequence%&amp;gt;'&amp;gt;&lt;BR /&gt;&amp;lt;INPUT TYPE='HIDDEN' NAME='x_fp_timestamp' VALUE='&amp;lt;%=x_fp_timestamp%&amp;gt;'&amp;gt;&lt;BR /&gt;&amp;lt;INPUT TYPE='HIDDEN' NAME='x_fp_hash' VALUE='&amp;lt;%=x_fp_hash%&amp;gt;'&amp;gt;&lt;BR /&gt;&amp;lt;INPUT TYPE='HIDDEN' NAME='x_version' VALUE='3.1'&amp;gt;&lt;BR /&gt;&amp;lt;INPUT TYPE='HIDDEN' NAME='x_method' VALUE='CC'&amp;gt;&lt;BR /&gt;&amp;lt;INPUT TYPE='HIDDEN' NAME='x_type' VALUE='AUTH_CAPTURE'&amp;gt;&lt;BR /&gt;&amp;lt;INPUT TYPE='HIDDEN' NAME='x_amount' VALUE='&amp;lt;%=amount%&amp;gt;'&amp;gt;&lt;BR /&gt;&amp;lt;INPUT TYPE='HIDDEN' NAME='x_test_request' VALUE='TRUE'&amp;gt;&lt;BR /&gt;&amp;lt;INPUT TYPE='HIDDEN' NAME='notes' VALUE='extra hot please'&amp;gt;&lt;BR /&gt;&amp;lt;INPUT TYPE='SUBMIT' NAME='buy_button' VALUE='BUY'&amp;gt;&lt;BR /&gt;&amp;lt;/FORM&amp;gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2013 12:16:37 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Authorize-net-not-redirecting-to-my-URL/m-p/34781#M19204</guid>
      <dc:creator>gauravagarwal1</dc:creator>
      <dc:date>2013-06-26T12:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: Authorize.net not redirecting to my URL</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Authorize-net-not-redirecting-to-my-URL/m-p/34782#M19205</link>
      <description>&lt;P&gt;localhost is not a valid internet website.&lt;/P&gt;&lt;P&gt;Read&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.developer.cybersource.com/t5/The-Authorize-Net-Developer-Blog/Relay-Response-Basics-and-Troubleshooting/ba-p/9536" target="_self"&gt;Relay Response Basics and Troubleshooting&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2013 12:43:32 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Authorize-net-not-redirecting-to-my-URL/m-p/34782#M19205</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2013-06-26T12:43:32Z</dc:date>
    </item>
  </channel>
</rss>

