<?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: AIM PHP CURL ERROR (13) The merchant login ID or password is invalid or the account is inactive. in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-PHP-CURL-ERROR-13-The-merchant-login-ID-or-password-is/m-p/26700#M14172</link>
    <description>&lt;P&gt;From Sample Code&lt;/P&gt;&lt;P&gt;your $data is $post_values in the sample code&lt;/P&gt;&lt;PRE&gt;$post_string = "";&lt;BR /&gt;foreach( $post_values as $key =&amp;gt; $value )
    { $post_string .= "$key=" . urlencode( $value ) . "&amp;amp;"; }
$post_string = rtrim( $post_string, "&amp;amp; " );&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;curl_setopt($request, CURLOPT_POSTFIELDS, $post_string); &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From &lt;A target="_blank" href="http://www.php.net/manual/en/function.curl-setopt.php"&gt;http://www.php.net/manual/en/function.curl-setopt.php&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Passing an array to &lt;STRONG&gt;CURLOPT_POSTFIELDS&lt;/STRONG&gt; will encode the data as &lt;EM&gt;multipart/form-data&lt;/EM&gt;, while passing a URL-encoded string will encode the data as &lt;EM&gt;application/x-www-form-urlencoded&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 23 May 2012 23:22:37 GMT</pubDate>
    <dc:creator>RaynorC1emen7</dc:creator>
    <dc:date>2012-05-23T23:22:37Z</dc:date>
    <item>
      <title>AIM PHP CURL ERROR (13) The merchant login ID or password is invalid or the account is inactive.</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-PHP-CURL-ERROR-13-The-merchant-login-ID-or-password-is/m-p/26698#M14171</link>
      <description>&lt;P&gt;I'm just starting to test and am getting the error:&amp;nbsp;(13) The merchant login ID or password is invalid or the account is inactive.&lt;/P&gt;&lt;P&gt;I am using a live account and have put it in test mode. If I put the same varriables into a html form everything works fine however if post them via php using curl I get the error. The example I'm using below is pretty straight forward but maybe I've overlooked something that someone can spot. Perhaps I have to actually activate the account in some way I've missed, is this possible? Any help would be greatly apprecated. Again I am not using the developer account but the live account in test mode.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;?php&lt;/P&gt;&lt;P&gt;$data = array(&lt;BR /&gt;'x_login' =&amp;gt; 'omitted',&lt;BR /&gt;'x_tran_key' =&amp;gt; 'omitted',&lt;BR /&gt;'x_type' =&amp;gt; 'CAPTURE_ONLY',&lt;BR /&gt;'x_amount' =&amp;gt; '27.00',&lt;BR /&gt;'x_card_num' =&amp;gt; '4007000000027',&lt;BR /&gt;'x_exp_date' =&amp;gt; '04-15'&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;$ch = curl_init();&lt;/P&gt;&lt;P&gt;curl_setopt($ch, CURLOPT_URL, '&lt;A target="_blank" href="https://secure.authorize.net/gateway/transact.dll');"&gt;https://secure.authorize.net/gateway/transact.dll');&lt;/A&gt;&lt;BR /&gt;curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);&lt;BR /&gt;curl_setopt($ch, CURLOPT_POST, 1);&lt;BR /&gt;curl_setopt($ch, CURLOPT_POSTFIELDS, $data);&lt;BR /&gt;$response = curl_exec($ch);&lt;BR /&gt;curl_close($ch);&lt;/P&gt;&lt;P&gt;echo&amp;nbsp;$response;&lt;/P&gt;&lt;P&gt;?&amp;gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2012 22:32:07 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-PHP-CURL-ERROR-13-The-merchant-login-ID-or-password-is/m-p/26698#M14171</guid>
      <dc:creator>SurferJoe</dc:creator>
      <dc:date>2012-05-23T22:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: AIM PHP CURL ERROR (13) The merchant login ID or password is invalid or the account is inactive.</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-PHP-CURL-ERROR-13-The-merchant-login-ID-or-password-is/m-p/26700#M14172</link>
      <description>&lt;P&gt;From Sample Code&lt;/P&gt;&lt;P&gt;your $data is $post_values in the sample code&lt;/P&gt;&lt;PRE&gt;$post_string = "";&lt;BR /&gt;foreach( $post_values as $key =&amp;gt; $value )
    { $post_string .= "$key=" . urlencode( $value ) . "&amp;amp;"; }
$post_string = rtrim( $post_string, "&amp;amp; " );&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;curl_setopt($request, CURLOPT_POSTFIELDS, $post_string); &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From &lt;A target="_blank" href="http://www.php.net/manual/en/function.curl-setopt.php"&gt;http://www.php.net/manual/en/function.curl-setopt.php&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Passing an array to &lt;STRONG&gt;CURLOPT_POSTFIELDS&lt;/STRONG&gt; will encode the data as &lt;EM&gt;multipart/form-data&lt;/EM&gt;, while passing a URL-encoded string will encode the data as &lt;EM&gt;application/x-www-form-urlencoded&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2012 23:22:37 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-PHP-CURL-ERROR-13-The-merchant-login-ID-or-password-is/m-p/26700#M14172</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2012-05-23T23:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: AIM PHP CURL ERROR (13) The merchant login ID or password is invalid or the account is inactive.</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-PHP-CURL-ERROR-13-The-merchant-login-ID-or-password-is/m-p/26702#M14173</link>
      <description>&lt;P&gt;Thanks!!!&lt;/P&gt;&lt;P&gt;I new I had overlooked something.&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2012 23:36:45 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-PHP-CURL-ERROR-13-The-merchant-login-ID-or-password-is/m-p/26702#M14173</guid>
      <dc:creator>SurferJoe</dc:creator>
      <dc:date>2012-05-23T23:36:45Z</dc:date>
    </item>
  </channel>
</rss>

