<?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 Integration using AIM method not directing to post url in sandbox account after submit button in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Integration-using-AIM-method-not-directing-to-post-url-in/m-p/40562#M22030</link>
    <description>&lt;P&gt;Hi i am newbie in authorize.net , i am using AIM method to integrate with my website payment page. but after hitting on &amp;nbsp; Pay Now button i am not directing to&amp;nbsp;&lt;A target="_blank" href="https://test.authorize.net/gateway/transact.dll"&gt;https://test.authorize.net/gateway/transact.dll&lt;/A&gt; for payment but all the response is successful , payment is done but why my payment got done without going to this link this is my issue because same thing may happen with live . may be i am doing some mistake placing action here is my code sniffet&amp;nbsp;&lt;/P&gt;&lt;P&gt;in check_out.php and my payment.php contain is like this&lt;/P&gt;&lt;P&gt;form action="payment.php" method="post" name="payform" id="payform&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and payment.php contain is&amp;nbsp;&lt;/P&gt;&lt;P&gt;$post_values = array(&lt;BR /&gt;"x_login" =&amp;gt; "$LOGINKEY",&lt;BR /&gt;"x_tran_key" =&amp;gt; "$TRANSKEY",&lt;BR /&gt;"x_version" =&amp;gt; "3.1",&lt;BR /&gt;"x_delim_data" =&amp;gt; "TRUE",&lt;BR /&gt;"x_delim_char" =&amp;gt; "|",&lt;BR /&gt;"x_relay_response" =&amp;gt; "FALSE",&lt;BR /&gt;//"x_market_type" =&amp;gt; "2",&lt;BR /&gt;"x_device_type" =&amp;gt; "1",&lt;BR /&gt;"x_type" =&amp;gt; "AUTH_CAPTURE",&lt;BR /&gt;"x_method" =&amp;gt; "CC",&lt;BR /&gt;"x_card_num" =&amp;gt; $creditCardNumber,&lt;BR /&gt;"x_invoice_num" =&amp;gt; $invoice_number,&lt;BR /&gt;"x_exp_date" =&amp;gt; $date,&lt;BR /&gt;"x_amount" =&amp;gt; $amount,&lt;BR /&gt;//"x_description" =&amp;gt; "Sample Transaction",&lt;BR /&gt;"x_first_name" =&amp;gt; $firstName,&lt;BR /&gt;"x_last_name" =&amp;gt; $lastName,&lt;BR /&gt;"x_address" =&amp;gt; $address1,&lt;BR /&gt;"x_state" =&amp;gt; $state,&lt;BR /&gt;"x_city" =&amp;gt;$city,&lt;BR /&gt;"x_country" =&amp;gt;$country,&lt;BR /&gt;"x_company" =&amp;gt;$company,&lt;BR /&gt;"x_email" =&amp;gt;$email,&lt;BR /&gt;"x_phone" =&amp;gt;$phone,&lt;BR /&gt;&lt;BR /&gt;"x_response_format" =&amp;gt; "1",&lt;BR /&gt;"x_zip" =&amp;gt; $zip&lt;BR /&gt;// Additional fields can be added here as outlined in the AIM integration&lt;BR /&gt;// guide at: &lt;A target="_blank" href="http://developer.authorize.net"&gt;http://developer.authorize.net&lt;/A&gt;&lt;BR /&gt;);&lt;BR /&gt;&lt;BR /&gt;//echo '&amp;lt;pre&amp;gt;'; echo 'Request values'; print_r($post_values);&lt;BR /&gt;//comment the above line. i have given this just for testing purpose.&lt;/P&gt;&lt;P&gt;$post_string = "";&lt;BR /&gt;foreach( $post_values as $key =&amp;gt; $value )$post_string .= "$key=" . urlencode( $value ) . "&amp;amp;";&lt;BR /&gt;$post_string = rtrim($post_string,"&amp;amp; ");&lt;/P&gt;&lt;P&gt;//for test mode use the followin url&lt;BR /&gt;$post_url = "&lt;A target="_blank" href="https://test.authorize.net/gateway/transact.dll&amp;quot;;"&gt;https://test.authorize.net/gateway/transact.dll";&lt;/A&gt;&lt;BR /&gt;//for live use this url&lt;BR /&gt;//$post_url = "&lt;A target="_blank" href="https://secure.authorize.net/gateway/transact.dll&amp;quot;;"&gt;https://secure.authorize.net/gateway/transact.dll";&lt;/A&gt;&lt;/P&gt;&lt;P&gt;$request = curl_init($post_url); // initiate curl object&lt;BR /&gt;curl_setopt($request, CURLOPT_HEADER, 0); // set to 0 to eliminate header info from response&lt;BR /&gt;curl_setopt($request, CURLOPT_RETURNTRANSFER, 1); // Returns response data instead of TRUE(1)&lt;BR /&gt;curl_setopt($request, CURLOPT_POSTFIELDS, $post_string); // use HTTP POST to send form data&lt;BR /&gt;curl_setopt($request, CURLOPT_SSL_VERIFYPEER, FALSE); // uncomment this line if you get no gateway response.&lt;BR /&gt;$post_response = curl_exec($request); // execute curl post and store results in $post_response&lt;BR /&gt;// additional options may be required depending upon your server configuration&lt;BR /&gt;// you can find documentation on curl options at &lt;A target="_blank" href="http://www.php.net/curl_setopt"&gt;http://www.php.net/curl_setopt&lt;/A&gt;&lt;BR /&gt;curl_close ($request); // close curl object&lt;/P&gt;&lt;P&gt;// This line takes the response and breaks it into an array using the specified delimiting character&lt;BR /&gt;$response_array = explode($post_values["x_delim_char"],$post_response);&lt;/P&gt;&lt;P&gt;//echo '&amp;lt;br&amp;gt;&amp;lt;br&amp;gt; Response Array'; print_r($response_array);&lt;BR /&gt;//remove this line. i have used this just print the response array&lt;/P&gt;&lt;P&gt;if($response_array[0]==2||$response_array[0]==3)&lt;BR /&gt;{&lt;BR /&gt;//success&lt;BR /&gt;echo '&amp;lt;b&amp;gt;Payment Failure&amp;lt;/b&amp;gt;. &amp;lt;br&amp;gt;';&lt;BR /&gt;echo '&amp;lt;b&amp;gt;Error String&amp;lt;/b&amp;gt;: '.$response_array[3];&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;echo '&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Press back button to go back to the previous page';&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;$ptid = $response_array[6];&lt;BR /&gt;$ptidmd5 = $response_array[7];&lt;BR /&gt;$status=$response_array[0];&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;echo "$ptid "."Payment Success";&lt;BR /&gt;echo"$status";&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;where i am making mistake while in defining action or missing something Please advice&lt;/P&gt;</description>
    <pubDate>Tue, 15 Apr 2014 18:17:41 GMT</pubDate>
    <dc:creator>kumarsumit0612</dc:creator>
    <dc:date>2014-04-15T18:17:41Z</dc:date>
    <item>
      <title>Integration using AIM method not directing to post url in sandbox account after submit button</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Integration-using-AIM-method-not-directing-to-post-url-in/m-p/40562#M22030</link>
      <description>&lt;P&gt;Hi i am newbie in authorize.net , i am using AIM method to integrate with my website payment page. but after hitting on &amp;nbsp; Pay Now button i am not directing to&amp;nbsp;&lt;A target="_blank" href="https://test.authorize.net/gateway/transact.dll"&gt;https://test.authorize.net/gateway/transact.dll&lt;/A&gt; for payment but all the response is successful , payment is done but why my payment got done without going to this link this is my issue because same thing may happen with live . may be i am doing some mistake placing action here is my code sniffet&amp;nbsp;&lt;/P&gt;&lt;P&gt;in check_out.php and my payment.php contain is like this&lt;/P&gt;&lt;P&gt;form action="payment.php" method="post" name="payform" id="payform&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and payment.php contain is&amp;nbsp;&lt;/P&gt;&lt;P&gt;$post_values = array(&lt;BR /&gt;"x_login" =&amp;gt; "$LOGINKEY",&lt;BR /&gt;"x_tran_key" =&amp;gt; "$TRANSKEY",&lt;BR /&gt;"x_version" =&amp;gt; "3.1",&lt;BR /&gt;"x_delim_data" =&amp;gt; "TRUE",&lt;BR /&gt;"x_delim_char" =&amp;gt; "|",&lt;BR /&gt;"x_relay_response" =&amp;gt; "FALSE",&lt;BR /&gt;//"x_market_type" =&amp;gt; "2",&lt;BR /&gt;"x_device_type" =&amp;gt; "1",&lt;BR /&gt;"x_type" =&amp;gt; "AUTH_CAPTURE",&lt;BR /&gt;"x_method" =&amp;gt; "CC",&lt;BR /&gt;"x_card_num" =&amp;gt; $creditCardNumber,&lt;BR /&gt;"x_invoice_num" =&amp;gt; $invoice_number,&lt;BR /&gt;"x_exp_date" =&amp;gt; $date,&lt;BR /&gt;"x_amount" =&amp;gt; $amount,&lt;BR /&gt;//"x_description" =&amp;gt; "Sample Transaction",&lt;BR /&gt;"x_first_name" =&amp;gt; $firstName,&lt;BR /&gt;"x_last_name" =&amp;gt; $lastName,&lt;BR /&gt;"x_address" =&amp;gt; $address1,&lt;BR /&gt;"x_state" =&amp;gt; $state,&lt;BR /&gt;"x_city" =&amp;gt;$city,&lt;BR /&gt;"x_country" =&amp;gt;$country,&lt;BR /&gt;"x_company" =&amp;gt;$company,&lt;BR /&gt;"x_email" =&amp;gt;$email,&lt;BR /&gt;"x_phone" =&amp;gt;$phone,&lt;BR /&gt;&lt;BR /&gt;"x_response_format" =&amp;gt; "1",&lt;BR /&gt;"x_zip" =&amp;gt; $zip&lt;BR /&gt;// Additional fields can be added here as outlined in the AIM integration&lt;BR /&gt;// guide at: &lt;A target="_blank" href="http://developer.authorize.net"&gt;http://developer.authorize.net&lt;/A&gt;&lt;BR /&gt;);&lt;BR /&gt;&lt;BR /&gt;//echo '&amp;lt;pre&amp;gt;'; echo 'Request values'; print_r($post_values);&lt;BR /&gt;//comment the above line. i have given this just for testing purpose.&lt;/P&gt;&lt;P&gt;$post_string = "";&lt;BR /&gt;foreach( $post_values as $key =&amp;gt; $value )$post_string .= "$key=" . urlencode( $value ) . "&amp;amp;";&lt;BR /&gt;$post_string = rtrim($post_string,"&amp;amp; ");&lt;/P&gt;&lt;P&gt;//for test mode use the followin url&lt;BR /&gt;$post_url = "&lt;A target="_blank" href="https://test.authorize.net/gateway/transact.dll&amp;quot;;"&gt;https://test.authorize.net/gateway/transact.dll";&lt;/A&gt;&lt;BR /&gt;//for live use this url&lt;BR /&gt;//$post_url = "&lt;A target="_blank" href="https://secure.authorize.net/gateway/transact.dll&amp;quot;;"&gt;https://secure.authorize.net/gateway/transact.dll";&lt;/A&gt;&lt;/P&gt;&lt;P&gt;$request = curl_init($post_url); // initiate curl object&lt;BR /&gt;curl_setopt($request, CURLOPT_HEADER, 0); // set to 0 to eliminate header info from response&lt;BR /&gt;curl_setopt($request, CURLOPT_RETURNTRANSFER, 1); // Returns response data instead of TRUE(1)&lt;BR /&gt;curl_setopt($request, CURLOPT_POSTFIELDS, $post_string); // use HTTP POST to send form data&lt;BR /&gt;curl_setopt($request, CURLOPT_SSL_VERIFYPEER, FALSE); // uncomment this line if you get no gateway response.&lt;BR /&gt;$post_response = curl_exec($request); // execute curl post and store results in $post_response&lt;BR /&gt;// additional options may be required depending upon your server configuration&lt;BR /&gt;// you can find documentation on curl options at &lt;A target="_blank" href="http://www.php.net/curl_setopt"&gt;http://www.php.net/curl_setopt&lt;/A&gt;&lt;BR /&gt;curl_close ($request); // close curl object&lt;/P&gt;&lt;P&gt;// This line takes the response and breaks it into an array using the specified delimiting character&lt;BR /&gt;$response_array = explode($post_values["x_delim_char"],$post_response);&lt;/P&gt;&lt;P&gt;//echo '&amp;lt;br&amp;gt;&amp;lt;br&amp;gt; Response Array'; print_r($response_array);&lt;BR /&gt;//remove this line. i have used this just print the response array&lt;/P&gt;&lt;P&gt;if($response_array[0]==2||$response_array[0]==3)&lt;BR /&gt;{&lt;BR /&gt;//success&lt;BR /&gt;echo '&amp;lt;b&amp;gt;Payment Failure&amp;lt;/b&amp;gt;. &amp;lt;br&amp;gt;';&lt;BR /&gt;echo '&amp;lt;b&amp;gt;Error String&amp;lt;/b&amp;gt;: '.$response_array[3];&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;echo '&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Press back button to go back to the previous page';&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;$ptid = $response_array[6];&lt;BR /&gt;$ptidmd5 = $response_array[7];&lt;BR /&gt;$status=$response_array[0];&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;echo "$ptid "."Payment Success";&lt;BR /&gt;echo"$status";&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;where i am making mistake while in defining action or missing something Please advice&lt;/P&gt;</description>
      <pubDate>Tue, 15 Apr 2014 18:17:41 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Integration-using-AIM-method-not-directing-to-post-url-in/m-p/40562#M22030</guid>
      <dc:creator>kumarsumit0612</dc:creator>
      <dc:date>2014-04-15T18:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: Integration using AIM method not directing to post url in sandbox account after submit button</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Integration-using-AIM-method-not-directing-to-post-url-in/m-p/40564#M22031</link>
      <description>&lt;P&gt;this is AIM&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://developer.authorize.net/api/howitworks/aim/"&gt;http://developer.authorize.net/api/howitworks/aim/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;that how it work, you don't use the &lt;A target="_blank" href="https://test.authorize.net/gateway/transact.dll" rel="nofollow"&gt;https://test.authorize.net/gateway/transact.dll&lt;/A&gt; for payment because you are using credit present.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Apr 2014 19:26:36 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Integration-using-AIM-method-not-directing-to-post-url-in/m-p/40564#M22031</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2014-04-15T19:26:36Z</dc:date>
    </item>
  </channel>
</rss>

