<?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 Posting to authorize using the transact dll method directly in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Posting-to-authorize-using-the-transact-dll-method-directly/m-p/55091#M30025</link>
    <description>&lt;P&gt;I've inrehited some legacy authorized code that proccesses payments in a non-optimal way. I need to fix the script so that it issues a post request (it's currently doing get).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The script does not use the api and instead it just uses this url&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://secure.authorize.net/gateway/transact.dll" target="_blank"&gt;https://secure.authorize.net/gateway/transact.dll&lt;/A&gt;, and string building with concats to send data to authorize.net&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;for example this is what processes the payment.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$sPaymentURL = "&lt;A href="https://secure.authorize.net/gateway/transact.dll" target="_blank"&gt;https://secure.authorize.net/gateway/transact.dll&lt;/A&gt;?" . $sParams;&lt;/P&gt;&lt;P&gt;$ResponseText = file_get_contents($sPaymentURL);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;$sParams itself is a concatenation of many vars below&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;$sParams = "x_test_request=FLASE";&lt;BR /&gt;$sParams .= "&amp;amp;x_login=" . urlencode($AUTHORIZE_LOGIN) . "&amp;amp;x_password=" . urlencode($AUTHORIZE_PASSWORD);&lt;BR /&gt;$sParams .= "&amp;amp;x_card_num=" . urlencode($x_Card_Num);&lt;BR /&gt;$sParams .= "&amp;amp;x_delim_data=TRUE";&lt;BR /&gt;$sParams .= "&amp;amp;x_delim_char=|";&lt;BR /&gt;$sParams .= "&amp;amp;x_relay_response=FALSE";&lt;BR /&gt;$sParams .= "&amp;amp;x_exp_date=" . urlencode($EXPIRATION_DATE);&lt;BR /&gt;$sParams .= "&amp;amp;x_invoice_num=" . urlencode($ORDER_NR);&lt;BR /&gt;$sParams .= "&amp;amp;x_amount=" . urlencode($tCAmt);&lt;BR /&gt;$sParams .= "&amp;amp;x_first_name=" . urlencode($x_first_name);&lt;BR /&gt;$sParams .= "&amp;amp;x_last_name=" . urlencode($x_last_name);&lt;BR /&gt;$sParams .= "&amp;amp;x_city=" . urlencode($x_city);&lt;BR /&gt;$sParams .= "&amp;amp;x_zip=" . urlencode($x_zip);&lt;BR /&gt;$sParams .= "&amp;amp;x_address=" . urlencode($tCCAddr1);&lt;BR /&gt;$sParams .= "&amp;amp;x_state=" . urlencode($x_state);&lt;BR /&gt;$sParams .= "&amp;amp;x_country=" . urlencode($x_country);&lt;BR /&gt;$sParams .= "&amp;amp;x_email=" . urlencode($tBEmail);&lt;BR /&gt;$sParams .= "&amp;amp;x_email_customer=FALSE";&lt;BR /&gt;$sParams .= "&amp;amp;x_email_merchant=TRUE";&lt;BR /&gt;$sParams .= "&amp;amp;x_ship_to_first_name=" . urlencode($tNameBuyer);&lt;BR /&gt;$sParams .= "&amp;amp;x_ship_to_address=" . urlencode($tShpAddr1);&lt;BR /&gt;$sParams .= "&amp;amp;x_ship_to_city=" . urlencode($x_Ship_To_City);&lt;BR /&gt;$sParams .= "&amp;amp;x_ship_to_state=" . urlencode($x_Ship_To_State);&lt;BR /&gt;$sParams .= "&amp;amp;x_ship_to_zip=" . urlencode($x_Ship_To_ZIP);&lt;BR /&gt;$sParams .= "&amp;amp;x_ship_to_country=" . urlencode($x_Ship_To_Country);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what I'm trying to do is use a post request like the example below, where the mData array captures&amp;nbsp;all the variables I need. The problem is I'm not sure how to form the login variable&lt;/P&gt;&lt;P&gt;since it&amp;nbsp;seems it's not an atomic value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because login contains two parts (login_id +pasword) how do i form it in the array? as a subarray? or is there another way I can execute this post without using the api?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$mData = array('x_test_request' =&amp;gt; 'FALSE', 'x_login' =&amp;gt; $ready_x_login,&lt;BR /&gt;'x_card_num' =&amp;gt; $ready_x_card_num, 'x_delim_data' =&amp;gt; 'TRUE', 'x_delim_char' =&amp;gt; '|',&lt;BR /&gt;'x_relay_response' =&amp;gt; 'FALSE', 'x_exp_date' =&amp;gt; $ready_x_exp_date,&lt;BR /&gt;'x_invoice_num' =&amp;gt; $ready_x_invoice_num, 'x_amount' =&amp;gt; $ready_x_amount,&lt;BR /&gt;'x_first_name' =&amp;gt; $ready_x_first_name, 'x_last_name' =&amp;gt; $ready_x_last_name,&lt;BR /&gt;'x_city' =&amp;gt; $ready_x_city, 'x_zip' =&amp;gt; $ready_x_zip, 'x_state' =&amp;gt; $ready_x_state,&lt;BR /&gt;'x_country' =&amp;gt; $ready_x_country, 'x_email' =&amp;gt; $ready_x_email,&lt;BR /&gt;'x_email_customer' =&amp;gt; 'FALSE', 'x_email_merchant' =&amp;gt; 'TRUE',&lt;BR /&gt;'x_ship_to_first_name' =&amp;gt; $ready_x_ship_to_first_name, 'x_ship_to_address' =&amp;gt; $ready_x_ship_to_address,&lt;BR /&gt;'x_ship_to_city' =&amp;gt; $ready_x_ship_to_city, 'x_ship_to_state' =&amp;gt; $ready_x_ship_to_state,&lt;BR /&gt;'x_ship_to_country' =&amp;gt; $ready_x_ship_to_country);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$mOptions = array(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; 'http' =&amp;gt; array(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; 'header' =&amp;gt; "Content-type: application/x-www-form-urlencoded\r\n",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; 'method' =&amp;gt; 'POST',&lt;BR /&gt;&amp;nbsp; &amp;nbsp; 'content' =&amp;gt; http_build_query($mData)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; )&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any help will be greatly appreciated&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jun 2016 21:13:09 GMT</pubDate>
    <dc:creator>Alix</dc:creator>
    <dc:date>2016-06-30T21:13:09Z</dc:date>
    <item>
      <title>Posting to authorize using the transact dll method directly</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Posting-to-authorize-using-the-transact-dll-method-directly/m-p/55091#M30025</link>
      <description>&lt;P&gt;I've inrehited some legacy authorized code that proccesses payments in a non-optimal way. I need to fix the script so that it issues a post request (it's currently doing get).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The script does not use the api and instead it just uses this url&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://secure.authorize.net/gateway/transact.dll" target="_blank"&gt;https://secure.authorize.net/gateway/transact.dll&lt;/A&gt;, and string building with concats to send data to authorize.net&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;for example this is what processes the payment.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$sPaymentURL = "&lt;A href="https://secure.authorize.net/gateway/transact.dll" target="_blank"&gt;https://secure.authorize.net/gateway/transact.dll&lt;/A&gt;?" . $sParams;&lt;/P&gt;&lt;P&gt;$ResponseText = file_get_contents($sPaymentURL);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;$sParams itself is a concatenation of many vars below&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;$sParams = "x_test_request=FLASE";&lt;BR /&gt;$sParams .= "&amp;amp;x_login=" . urlencode($AUTHORIZE_LOGIN) . "&amp;amp;x_password=" . urlencode($AUTHORIZE_PASSWORD);&lt;BR /&gt;$sParams .= "&amp;amp;x_card_num=" . urlencode($x_Card_Num);&lt;BR /&gt;$sParams .= "&amp;amp;x_delim_data=TRUE";&lt;BR /&gt;$sParams .= "&amp;amp;x_delim_char=|";&lt;BR /&gt;$sParams .= "&amp;amp;x_relay_response=FALSE";&lt;BR /&gt;$sParams .= "&amp;amp;x_exp_date=" . urlencode($EXPIRATION_DATE);&lt;BR /&gt;$sParams .= "&amp;amp;x_invoice_num=" . urlencode($ORDER_NR);&lt;BR /&gt;$sParams .= "&amp;amp;x_amount=" . urlencode($tCAmt);&lt;BR /&gt;$sParams .= "&amp;amp;x_first_name=" . urlencode($x_first_name);&lt;BR /&gt;$sParams .= "&amp;amp;x_last_name=" . urlencode($x_last_name);&lt;BR /&gt;$sParams .= "&amp;amp;x_city=" . urlencode($x_city);&lt;BR /&gt;$sParams .= "&amp;amp;x_zip=" . urlencode($x_zip);&lt;BR /&gt;$sParams .= "&amp;amp;x_address=" . urlencode($tCCAddr1);&lt;BR /&gt;$sParams .= "&amp;amp;x_state=" . urlencode($x_state);&lt;BR /&gt;$sParams .= "&amp;amp;x_country=" . urlencode($x_country);&lt;BR /&gt;$sParams .= "&amp;amp;x_email=" . urlencode($tBEmail);&lt;BR /&gt;$sParams .= "&amp;amp;x_email_customer=FALSE";&lt;BR /&gt;$sParams .= "&amp;amp;x_email_merchant=TRUE";&lt;BR /&gt;$sParams .= "&amp;amp;x_ship_to_first_name=" . urlencode($tNameBuyer);&lt;BR /&gt;$sParams .= "&amp;amp;x_ship_to_address=" . urlencode($tShpAddr1);&lt;BR /&gt;$sParams .= "&amp;amp;x_ship_to_city=" . urlencode($x_Ship_To_City);&lt;BR /&gt;$sParams .= "&amp;amp;x_ship_to_state=" . urlencode($x_Ship_To_State);&lt;BR /&gt;$sParams .= "&amp;amp;x_ship_to_zip=" . urlencode($x_Ship_To_ZIP);&lt;BR /&gt;$sParams .= "&amp;amp;x_ship_to_country=" . urlencode($x_Ship_To_Country);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what I'm trying to do is use a post request like the example below, where the mData array captures&amp;nbsp;all the variables I need. The problem is I'm not sure how to form the login variable&lt;/P&gt;&lt;P&gt;since it&amp;nbsp;seems it's not an atomic value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because login contains two parts (login_id +pasword) how do i form it in the array? as a subarray? or is there another way I can execute this post without using the api?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$mData = array('x_test_request' =&amp;gt; 'FALSE', 'x_login' =&amp;gt; $ready_x_login,&lt;BR /&gt;'x_card_num' =&amp;gt; $ready_x_card_num, 'x_delim_data' =&amp;gt; 'TRUE', 'x_delim_char' =&amp;gt; '|',&lt;BR /&gt;'x_relay_response' =&amp;gt; 'FALSE', 'x_exp_date' =&amp;gt; $ready_x_exp_date,&lt;BR /&gt;'x_invoice_num' =&amp;gt; $ready_x_invoice_num, 'x_amount' =&amp;gt; $ready_x_amount,&lt;BR /&gt;'x_first_name' =&amp;gt; $ready_x_first_name, 'x_last_name' =&amp;gt; $ready_x_last_name,&lt;BR /&gt;'x_city' =&amp;gt; $ready_x_city, 'x_zip' =&amp;gt; $ready_x_zip, 'x_state' =&amp;gt; $ready_x_state,&lt;BR /&gt;'x_country' =&amp;gt; $ready_x_country, 'x_email' =&amp;gt; $ready_x_email,&lt;BR /&gt;'x_email_customer' =&amp;gt; 'FALSE', 'x_email_merchant' =&amp;gt; 'TRUE',&lt;BR /&gt;'x_ship_to_first_name' =&amp;gt; $ready_x_ship_to_first_name, 'x_ship_to_address' =&amp;gt; $ready_x_ship_to_address,&lt;BR /&gt;'x_ship_to_city' =&amp;gt; $ready_x_ship_to_city, 'x_ship_to_state' =&amp;gt; $ready_x_ship_to_state,&lt;BR /&gt;'x_ship_to_country' =&amp;gt; $ready_x_ship_to_country);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$mOptions = array(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; 'http' =&amp;gt; array(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; 'header' =&amp;gt; "Content-type: application/x-www-form-urlencoded\r\n",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; 'method' =&amp;gt; 'POST',&lt;BR /&gt;&amp;nbsp; &amp;nbsp; 'content' =&amp;gt; http_build_query($mData)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; )&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any help will be greatly appreciated&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2016 21:13:09 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Posting-to-authorize-using-the-transact-dll-method-directly/m-p/55091#M30025</guid>
      <dc:creator>Alix</dc:creator>
      <dc:date>2016-06-30T21:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Posting to authorize using the transact dll method directly</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Posting-to-authorize-using-the-transact-dll-method-directly/m-p/55092#M30026</link>
      <description>&lt;P&gt;The password is just another param.&lt;/P&gt;&lt;P&gt;read the AIM guide here&lt;/P&gt;&lt;P&gt;&lt;A href="http://developer.authorize.net/api/upgrade_guide/" target="_blank"&gt;http://developer.authorize.net/api/upgrade_guide/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2016 22:24:59 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Posting-to-authorize-using-the-transact-dll-method-directly/m-p/55092#M30026</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2016-06-30T22:24:59Z</dc:date>
    </item>
  </channel>
</rss>

