<?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 •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-The-merchant-login-ID-or-password-is-invalid-or-the/m-p/19728#M10853</link>
    <description>&lt;P&gt;Go back and read my previous posts. You're almost certainly running in sandbox mode still but trying to log in with your production account.&lt;/P&gt;</description>
    <pubDate>Tue, 06 Dec 2011 07:57:23 GMT</pubDate>
    <dc:creator>TJPride</dc:creator>
    <dc:date>2011-12-06T07:57:23Z</dc:date>
    <item>
      <title>aim php •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-The-merchant-login-ID-or-password-is-invalid-or-the/m-p/19544#M10761</link>
      <description>&lt;P&gt;when I run aim in php using the aim sample code (where I changed my loginid and transactionkey)&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;&lt;UL&gt;&lt;LI&gt;3&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;2&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;13&lt;/LI&gt;&lt;LI&gt;The merchant login ID or password is invalid or the account is inactive.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;P&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;0&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;19.99&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;auth_capture&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;F5FB0412546E713FCEC05FA033DCD235&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;&lt;/UL&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;lt;!-- This sample code is designed to connect to Authorize.net using the AIM method. For API documentation or additional sample code, please visit: &lt;A href="http://developer.authorize.net" target="_blank"&gt;http://developer.authorize.net&lt;/A&gt; --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" &amp;nbsp; "&lt;A href="http://www.w3.org/TR/html4/loose.dtd" target="_blank"&gt;http://www.w3.org/TR/html4/loose.dtd&lt;/A&gt;"&amp;gt; &amp;lt;HTML lang='en'&amp;gt; &amp;lt;HEAD&amp;gt; &amp;nbsp;&amp;lt;TITLE&amp;gt; Sample AIM Implementation &amp;lt;/TITLE&amp;gt; &amp;lt;/HEAD&amp;gt; &amp;lt;BODY&amp;gt; &amp;lt;P&amp;gt; This sample code is designed to generate a post using Authorize.net's Advanced Integration Method (AIM) and display the results of this post to the screen. &amp;lt;/P&amp;gt; &amp;lt;P&amp;gt; For details on how this is accomplished, please review the readme file, the comments in the sample code, and the Authorize.net AIM API documentation found at &lt;A href="http://developer.authorize.net" target="_blank"&gt;http://developer.authorize.net&lt;/A&gt; &amp;lt;/P&amp;gt; &amp;lt;HR /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;?PHP&lt;/P&gt;&lt;P&gt;// By default, this sample code is designed to post to our test server for // developer accounts: &lt;A href="https://test.authorize.net/gateway/transact.dll" target="_blank"&gt;https://test.authorize.net/gateway/transact.dll&lt;/A&gt; // for real accounts (even in test mode), please make sure that you are // posting to: &lt;A href="https://secure.authorize.net/gateway/transact.dll" target="_blank"&gt;https://secure.authorize.net/gateway/transact.dll&lt;/A&gt; $post_url = "&lt;A href="https://test.authorize.net/gateway/transact.dll&amp;quot;;$post_values" target="_blank"&gt;https://test.authorize.net/gateway/transact.dll";&lt;/A&gt;&lt;/P&gt;&lt;P&gt;$post_values&lt;/P&gt;&lt;P&gt;= array( &amp;nbsp; &amp;nbsp;// the API Login ID and Transaction Key must be replaced with valid values &amp;nbsp;"x_login"&amp;nbsp;&amp;nbsp;&amp;nbsp;=&amp;gt; "API_LOGIN_ID", &amp;nbsp;"x_tran_key"&amp;nbsp;&amp;nbsp;=&amp;gt; "TRANSACTION_KEY",&lt;/P&gt;&lt;P&gt;&amp;nbsp;"x_version"&amp;nbsp;&amp;nbsp;&amp;nbsp;=&amp;gt; "3.1", &amp;nbsp;"x_delim_data"&amp;nbsp;&amp;nbsp;=&amp;gt; "TRUE", &amp;nbsp;"x_delim_char"&amp;nbsp;&amp;nbsp;=&amp;gt; "|", &amp;nbsp;"x_relay_response"&amp;nbsp;=&amp;gt; "FALSE",&lt;/P&gt;&lt;P&gt;&amp;nbsp;"x_type"&amp;nbsp;&amp;nbsp;&amp;nbsp;=&amp;gt; "AUTH_CAPTURE", &amp;nbsp;"x_method"&amp;nbsp;&amp;nbsp;&amp;nbsp;=&amp;gt; "CC", &amp;nbsp;"x_card_num"&amp;nbsp;&amp;nbsp;=&amp;gt; "4111111111111111", &amp;nbsp;"x_exp_date"&amp;nbsp;&amp;nbsp;=&amp;gt; "0115",&lt;/P&gt;&lt;P&gt;&amp;nbsp;"x_amount"&amp;nbsp;&amp;nbsp;&amp;nbsp;=&amp;gt; "19.99", &amp;nbsp;"x_description"&amp;nbsp;&amp;nbsp;=&amp;gt; "Sample Transaction",&lt;/P&gt;&lt;P&gt;&amp;nbsp;"x_first_name"&amp;nbsp;&amp;nbsp;=&amp;gt; "John", &amp;nbsp;"x_last_name"&amp;nbsp;&amp;nbsp;=&amp;gt; "Doe", &amp;nbsp;"x_address"&amp;nbsp;&amp;nbsp;&amp;nbsp;=&amp;gt; "1234 Street", &amp;nbsp;"x_state"&amp;nbsp;&amp;nbsp;&amp;nbsp;=&amp;gt; "WA", &amp;nbsp;"x_zip"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;=&amp;gt; "98004" &amp;nbsp;// Additional fields can be added here as outlined in the AIM integration &amp;nbsp;// guide at: &lt;A href="http://developer.authorize.net" target="_blank"&gt;http://developer.authorize.net&lt;/A&gt; );&lt;/P&gt;&lt;P&gt;// This section takes the input fields and converts them to the proper format // for an http post.&amp;nbsp; For example: "x_login=username&amp;amp;x_tran_key=a1B2c3D4" $post_string = ""; foreach( $post_values as $key =&amp;gt; $value ) &amp;nbsp;{ $post_string .= "$key=" . urlencode( $value ) . "&amp;amp;"; } $post_string = rtrim( $post_string, "&amp;amp; " );&lt;/P&gt;&lt;P&gt;// The following section provides an example of how to add line item details to // the post string.&amp;nbsp; Because line items may consist of multiple values with the // same key/name, they cannot be simply added into the above array. // // This section is commented out by default. /* $line_items = array( &amp;nbsp;"item1&amp;lt;|&amp;gt;golf balls&amp;lt;|&amp;gt;&amp;lt;|&amp;gt;2&amp;lt;|&amp;gt;18.95&amp;lt;|&amp;gt;Y", &amp;nbsp;"item2&amp;lt;|&amp;gt;golf bag&amp;lt;|&amp;gt;Wilson golf carry bag, red&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;39.99&amp;lt;|&amp;gt;Y", &amp;nbsp;"item3&amp;lt;|&amp;gt;book&amp;lt;|&amp;gt;Golf for Dummies&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;21.99&amp;lt;|&amp;gt;Y"); &amp;nbsp; foreach( $line_items as $value ) &amp;nbsp;{ $post_string .= "&amp;amp;x_line_item=" . urlencode( $value ); } */&lt;/P&gt;&lt;P&gt;// This sample code uses the CURL library for php to establish a connection, // submit the post, and record the response. // If you receive an error, you may want to ensure that you have the curl // library enabled in your php configuration $request = curl_init($post_url); // initiate curl object &amp;nbsp;curl_setopt($request, CURLOPT_HEADER, 0); // set to 0 to eliminate header info from response &amp;nbsp;curl_setopt($request, CURLOPT_RETURNTRANSFER, 1); // Returns response data instead of TRUE(1) &amp;nbsp;curl_setopt($request, CURLOPT_POSTFIELDS, $post_string); // use HTTP POST to send form data &amp;nbsp;curl_setopt($request, CURLOPT_SSL_VERIFYPEER, FALSE); // uncomment this line if you get no gateway response. &amp;nbsp;$post_response = curl_exec($request); // execute curl post and store results in $post_response &amp;nbsp;// additional options may be required depending upon your server configuration &amp;nbsp;// you can find documentation on curl options at &lt;A href="http://www.php.net/curl_setopt" target="_blank"&gt;http://www.php.net/curl_setopt&lt;/A&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 $response_array = explode($post_values["x_delim_char"],$post_response);&lt;/P&gt;&lt;P&gt;// The results are output to the screen in the form of an html numbered list. echo "&amp;lt;OL&amp;gt;\n"; foreach ($response_array as $value) { &amp;nbsp;echo "&amp;lt;LI&amp;gt;" . $value . "&amp;amp;nbsp;&amp;lt;/LI&amp;gt;\n"; &amp;nbsp;$i++; } echo "&amp;lt;/OL&amp;gt;\n"; // individual elements of the array could be accessed to read certain response // fields.&amp;nbsp; For example, response_array[0] would return the Response Code, // response_array[2] would return the Response Reason Code. // for a list of response fields, please review the AIM Implementation Guide ?&amp;gt; &amp;lt;/BODY&amp;gt; &amp;lt;/HTML&amp;gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2011 05:18:25 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/aim-php-The-merchant-login-ID-or-password-is-invalid-or-the/m-p/19544#M10761</guid>
      <dc:creator>forthis</dc:creator>
      <dc:date>2011-12-01T05:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: aim php •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-The-merchant-login-ID-or-password-is-invalid-or-the/m-p/19552#M10765</link>
      <description>&lt;P&gt;In future, please use a code box (fourth option from the left in Rich Text mode).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error 13 generally means that you tried to use a sandbox (developer / test account) login on the production URL, or a production account login on the sandbox URL. It can be confusing, but test mode is not the same thing as test server.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2011 07:20:11 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/aim-php-The-merchant-login-ID-or-password-is-invalid-or-the/m-p/19552#M10765</guid>
      <dc:creator>TJPride</dc:creator>
      <dc:date>2011-12-01T07:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: aim php •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-The-merchant-login-ID-or-password-is-invalid-or-the/m-p/19642#M10810</link>
      <description>&lt;P&gt;I did it with testmode true and testmode false&lt;/P&gt;</description>
      <pubDate>Sat, 03 Dec 2011 05:53:54 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/aim-php-The-merchant-login-ID-or-password-is-invalid-or-the/m-p/19642#M10810</guid>
      <dc:creator>forthis</dc:creator>
      <dc:date>2011-12-03T05:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: aim php •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-The-merchant-login-ID-or-password-is-invalid-or-the/m-p/19650#M10814</link>
      <description>&lt;P&gt;Set test mode false then add this after:&lt;/P&gt;&lt;PRE&gt;$transaction = new AuthorizeNetAIM('YOUR_API_LOGIN_ID', 'YOUR_TRANSACTION_KEY');&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF YOU HAVE A DEVELOPER ACCOUNT:&lt;/P&gt;&lt;PRE&gt;$transaction-&amp;gt;setSandbox(true);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;IF YOU HAVE A PRODUCTION ACCOUNT:&lt;/P&gt;&lt;PRE&gt;$transaction-&amp;gt;setSandbox(false);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Dec 2011 08:56:24 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/aim-php-The-merchant-login-ID-or-password-is-invalid-or-the/m-p/19650#M10814</guid>
      <dc:creator>TJPride</dc:creator>
      <dc:date>2011-12-03T08:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: aim php •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-The-merchant-login-ID-or-password-is-invalid-or-the/m-p/19704#M10841</link>
      <description>I added this $transaction = new AuthorizeNetAIM('YOUR_API_LOGIN_ID', 'YOUR_TRANSACTION_KEY'); $transaction-&amp;gt;setSandbox(false); at the top of the php and got this error Fatal error: Class 'AuthorizeNetAIM' not found</description>
      <pubDate>Mon, 05 Dec 2011 23:15:14 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/aim-php-The-merchant-login-ID-or-password-is-invalid-or-the/m-p/19704#M10841</guid>
      <dc:creator>forthis</dc:creator>
      <dc:date>2011-12-05T23:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: aim php •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-The-merchant-login-ID-or-password-is-invalid-or-the/m-p/19706#M10842</link>
      <description>Do I need to attach another file (where this class is declared)</description>
      <pubDate>Mon, 05 Dec 2011 23:17:39 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/aim-php-The-merchant-login-ID-or-password-is-invalid-or-the/m-p/19706#M10842</guid>
      <dc:creator>forthis</dc:creator>
      <dc:date>2011-12-05T23:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: aim php •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-The-merchant-login-ID-or-password-is-invalid-or-the/m-p/19712#M10845</link>
      <description>&lt;P&gt;You have to have uploaded the SDK to your site and then included either the AIM library file, or the master file. If the SDK is in the same folder as your page:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;require_once 'anet_php_sdk/AuthorizeNet.php';&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2011 02:14:18 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/aim-php-The-merchant-login-ID-or-password-is-invalid-or-the/m-p/19712#M10845</guid>
      <dc:creator>TJPride</dc:creator>
      <dc:date>2011-12-06T02:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: aim php •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-The-merchant-login-ID-or-password-is-invalid-or-the/m-p/19716#M10847</link>
      <description>where do I find sdk file</description>
      <pubDate>Tue, 06 Dec 2011 03:36:02 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/aim-php-The-merchant-login-ID-or-password-is-invalid-or-the/m-p/19716#M10847</guid>
      <dc:creator>forthis</dc:creator>
      <dc:date>2011-12-06T03:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: aim php •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-The-merchant-login-ID-or-password-is-invalid-or-the/m-p/19718#M10848</link>
      <description>i cant find sdk file and do I put require_once 'anet_php_sdk/AuthorizeNet.php'; on top of aim.php file</description>
      <pubDate>Tue, 06 Dec 2011 03:37:16 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/aim-php-The-merchant-login-ID-or-password-is-invalid-or-the/m-p/19718#M10848</guid>
      <dc:creator>forthis</dc:creator>
      <dc:date>2011-12-06T03:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: aim php •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-The-merchant-login-ID-or-password-is-invalid-or-the/m-p/19720#M10849</link>
      <description>I found the sdk require_once 'anet_php_sdk/AuthorizeNet.php'; now I get the same error that I had when I opened this question The merchant login ID or password is invalid or the account is inactive.</description>
      <pubDate>Tue, 06 Dec 2011 03:43:32 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/aim-php-The-merchant-login-ID-or-password-is-invalid-or-the/m-p/19720#M10849</guid>
      <dc:creator>forthis</dc:creator>
      <dc:date>2011-12-06T03:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: aim php •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-The-merchant-login-ID-or-password-is-invalid-or-the/m-p/19722#M10850</link>
      <description>I got a card not present test account the code works on the test account but I want the code to work on my account could there be something wrong with my authorize.net account and who do I ask</description>
      <pubDate>Tue, 06 Dec 2011 03:59:56 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/aim-php-The-merchant-login-ID-or-password-is-invalid-or-the/m-p/19722#M10850</guid>
      <dc:creator>forthis</dc:creator>
      <dc:date>2011-12-06T03:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: aim php •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-The-merchant-login-ID-or-password-is-invalid-or-the/m-p/19728#M10853</link>
      <description>&lt;P&gt;Go back and read my previous posts. You're almost certainly running in sandbox mode still but trying to log in with your production account.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2011 07:57:23 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/aim-php-The-merchant-login-ID-or-password-is-invalid-or-the/m-p/19728#M10853</guid>
      <dc:creator>TJPride</dc:creator>
      <dc:date>2011-12-06T07:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: aim php •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-The-merchant-login-ID-or-password-is-invalid-or-the/m-p/19790#M10883</link>
      <description>&lt;P&gt;The merchant login ID or password is invalid or the account is inactive.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can toggle on/off test/development sandbox true/false&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;!-- This sample code is designed to connect to Authorize.net using the AIM method. For API documentation or additional sample code, please visit: &lt;A href="http://developer.authorize.net" target="_blank"&gt;http://developer.authorize.net&lt;/A&gt; --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" &amp;nbsp; "&lt;A href="http://www.w3.org/TR/html4/loose.dtd" target="_blank"&gt;http://www.w3.org/TR/html4/loose.dtd&lt;/A&gt;"&amp;gt; &amp;lt;HTML lang='en'&amp;gt; &amp;lt;HEAD&amp;gt; &amp;nbsp; &amp;lt;TITLE&amp;gt; Sample AIM Implementation &amp;lt;/TITLE&amp;gt; &amp;lt;/HEAD&amp;gt; &amp;lt;BODY&amp;gt; &amp;lt;P&amp;gt; This sample code is designed to generate a post using Authorize.net's Advanced Integration Method (AIM) and display the results of this post to the screen. &amp;lt;/P&amp;gt; &amp;lt;P&amp;gt; For details on how this is accomplished, please review the readme file, the comments in the sample code, and the Authorize.net AIM API documentation found at &lt;A href="http://developer.authorize.net" target="_blank"&gt;http://developer.authorize.net&lt;/A&gt; &amp;lt;/P&amp;gt; &amp;lt;HR /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;?PHP //real $apiLoginID="xxx"; $transactionKey="xxx"; //test //$apiLoginID="xxx"; //$transactionKey="xxx";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// By default, this sample code is designed to post to our test server for // developer accounts: &lt;A href="https://test.authorize.net/gateway/transact.dll" target="_blank"&gt;https://test.authorize.net/gateway/transact.dll&lt;/A&gt; // for real accounts (even in test mode), please make sure that you are // posting to: &lt;A href="https://secure.authorize.net/gateway/transact.dll" target="_blank"&gt;https://secure.authorize.net/gateway/transact.dll&lt;/A&gt; $post_url = "&lt;A href="https://test.authorize.net/gateway/transact.dll&amp;quot;;//$transaction" target="_blank"&gt;https://test.authorize.net/gateway/transact.dll";&lt;/A&gt;&lt;/P&gt;&lt;P&gt;//$transaction&lt;/P&gt;&lt;P&gt;= new AuthorizeNetAIM('YOUR_API_LOGIN_ID', 'YOUR_TRANSACTION_KEY'); //$transaction-&amp;gt;setSandbox(false); require_once 'anet_php_sdk/AuthorizeNet.php'; $transaction = new AuthorizeNetAIM("$apiLoginID", "$transactionKey"); //$transaction-&amp;gt;setSandbox(true); $transaction-&amp;gt;setSandbox(false);&lt;/P&gt;&lt;P&gt;$post_values = array( &amp;nbsp; &amp;nbsp; // the API Login ID and Transaction Key must be replaced with valid values &amp;nbsp; "x_login"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; "$apiLoginID", &amp;nbsp; "x_tran_key"&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; "$transactionKey",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "x_version"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; "3.1", &amp;nbsp; "x_delim_data"&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; "TRUE", &amp;nbsp; "x_delim_char"&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; "|", &amp;nbsp; "x_relay_response"&amp;nbsp; =&amp;gt; "FALSE",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "x_type"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; "AUTH_CAPTURE", &amp;nbsp; "x_method"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; "CC", &amp;nbsp; "x_card_num"&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; "4111111111111111", &amp;nbsp; "x_exp_date"&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; "0115",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "x_amount"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; "19.99", &amp;nbsp; "x_description"&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; "Sample Transaction",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "x_first_name"&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; "John", &amp;nbsp; "x_last_name"&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; "Doe", &amp;nbsp; "x_address"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; "1234 Street", &amp;nbsp; "x_state"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; "WA", &amp;nbsp; "x_zip"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt; "98004" &amp;nbsp; // Additional fields can be added here as outlined in the AIM integration &amp;nbsp; // guide at: &lt;A href="http://developer.authorize.net" target="_blank"&gt;http://developer.authorize.net&lt;/A&gt; );&lt;/P&gt;&lt;P&gt;// This section takes the input fields and converts them to the proper format // for an http post.&amp;nbsp; For example: "x_login=username&amp;amp;x_tran_key=a1B2c3D4" $post_string = ""; foreach( $post_values as $key =&amp;gt; $value ) &amp;nbsp; { $post_string .= "$key=" . urlencode( $value ) . "&amp;amp;"; } $post_string = rtrim( $post_string, "&amp;amp; " );&lt;/P&gt;&lt;P&gt;// The following section provides an example of how to add line item details to // the post string.&amp;nbsp; Because line items may consist of multiple values with the // same key/name, they cannot be simply added into the above array. // // This section is commented out by default. /* $line_items = array( &amp;nbsp; "item1&amp;lt;|&amp;gt;golf balls&amp;lt;|&amp;gt;&amp;lt;|&amp;gt;2&amp;lt;|&amp;gt;18.95&amp;lt;|&amp;gt;Y", &amp;nbsp; "item2&amp;lt;|&amp;gt;golf bag&amp;lt;|&amp;gt;Wilson golf carry bag, red&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;39.99&amp;lt;|&amp;gt;Y", &amp;nbsp; "item3&amp;lt;|&amp;gt;book&amp;lt;|&amp;gt;Golf for Dummies&amp;lt;|&amp;gt;1&amp;lt;|&amp;gt;21.99&amp;lt;|&amp;gt;Y"); &amp;nbsp; foreach( $line_items as $value ) &amp;nbsp; { $post_string .= "&amp;amp;x_line_item=" . urlencode( $value ); } */&lt;/P&gt;&lt;P&gt;// This sample code uses the CURL library for php to establish a connection, // submit the post, and record the response. // If you receive an error, you may want to ensure that you have the curl // library enabled in your php configuration $request = curl_init($post_url); // initiate curl object &amp;nbsp; curl_setopt($request, CURLOPT_HEADER, 0); // set to 0 to eliminate header info from response &amp;nbsp; curl_setopt($request, CURLOPT_RETURNTRANSFER, 1); // Returns response data instead of TRUE(1) &amp;nbsp; curl_setopt($request, CURLOPT_POSTFIELDS, $post_string); // use HTTP POST to send form data &amp;nbsp; curl_setopt($request, CURLOPT_SSL_VERIFYPEER, FALSE); // uncomment this line if you get no gateway response. &amp;nbsp; $post_response = curl_exec($request); // execute curl post and store results in $post_response &amp;nbsp; // additional options may be required depending upon your server configuration &amp;nbsp; // you can find documentation on curl options at &lt;A href="http://www.php.net/curl_setopt" target="_blank"&gt;http://www.php.net/curl_setopt&lt;/A&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 $response_array = explode($post_values["x_delim_char"],$post_response);&lt;/P&gt;&lt;P&gt;// The results are output to the screen in the form of an html numbered list. echo "&amp;lt;OL&amp;gt;\n"; foreach ($response_array as $value) { &amp;nbsp; echo "&amp;lt;LI&amp;gt;" . $value . "&amp;amp;nbsp;&amp;lt;/LI&amp;gt;\n"; &amp;nbsp; $i++; } echo "&amp;lt;/OL&amp;gt;\n"; // individual elements of the array could be accessed to read certain response // fields.&amp;nbsp; For example, response_array[0] would return the Response Code, // response_array[2] would return the Response Reason Code. // for a list of response fields, please review the AIM Implementation Guide ?&amp;gt; &amp;lt;/BODY&amp;gt; &amp;lt;/HTML&amp;gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2011 01:23:30 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/aim-php-The-merchant-login-ID-or-password-is-invalid-or-the/m-p/19790#M10883</guid>
      <dc:creator>forthis</dc:creator>
      <dc:date>2011-12-08T01:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: aim php •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-The-merchant-login-ID-or-password-is-invalid-or-the/m-p/19792#M10884</link>
      <description>&lt;P&gt;You are using the sample code&lt;/P&gt;&lt;P&gt;Please read this, it right in the code.&lt;/P&gt;&lt;PRE&gt;// By default, this sample code is designed to post to our test server for &lt;BR /&gt;// developer accounts: &lt;A href="https://test.authorize.net/gateway/transact.dll" target="_blank"&gt;https://test.authorize.net/gateway/transact.dll&lt;/A&gt; &lt;BR /&gt;// for real accounts (even in test mode), please make sure that you are &lt;BR /&gt;// posting to: &lt;A href="https://secure.authorize.net/gateway/transact.dll" target="_blank"&gt;https://secure.authorize.net/gateway/transact.dll&lt;/A&gt; &lt;BR /&gt;$post_url = "&lt;A href="https://test.authorize.net/gateway/transact.dll" target="_blank"&gt;https://test.authorize.net/gateway/transact.dll&lt;/A&gt;";&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2011 12:23:01 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/aim-php-The-merchant-login-ID-or-password-is-invalid-or-the/m-p/19792#M10884</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2011-12-08T12:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: aim php •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-The-merchant-login-ID-or-password-is-invalid-or-the/m-p/19798#M10887</link>
      <description>&lt;P&gt;&lt;A href="https://secure.authorize.net/gateway/transact.dll" target="_blank"&gt;https://secure.authorize.net/gateway/transact.dll&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This transaction has been declined.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, how can I add a credit card field&amp;nbsp;to the post form&amp;nbsp; (even though it is unsafe)&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2011 13:18:08 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/aim-php-The-merchant-login-ID-or-password-is-invalid-or-the/m-p/19798#M10887</guid>
      <dc:creator>forthis</dc:creator>
      <dc:date>2011-12-08T13:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: aim php •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-The-merchant-login-ID-or-password-is-invalid-or-the/m-p/19804#M10890</link>
      <description>&lt;P&gt;It declined because you can't use a test cc# on a production account.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With my limited understanding of PHP is that, add the x_card_num field input field and any other input fields on another form(Let said formINPUT) and post to this AIM form and change&lt;/P&gt;&lt;PRE&gt;$post_values = array(
	// the API Login ID and Transaction Key must be replaced with valid values
	"x_login"			=&amp;gt; "API_LOGIN_ID",
	"x_tran_key"		=&amp;gt; "TRANSACTION_KEY",
	"x_version"			=&amp;gt; "3.1",
	"x_delim_data"		=&amp;gt; "TRUE",
	"x_delim_char"		=&amp;gt; "|",
	"x_relay_response"	=&amp;gt; "FALSE",
	"x_type"			=&amp;gt; "AUTH_CAPTURE",
	"x_method"		=&amp;gt; "CC",
	"x_card_num"		=&amp;gt; &lt;SPAN&gt;&lt;FONT color="#FF0000"&gt;$_POST&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;FONT color="#FF0000"&gt;[&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;FONT color="#FF0000"&gt;'x_card_num'&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;FONT color="#FF0000"&gt;]&lt;/FONT&gt;&lt;/SPAN&gt;,
	"x_exp_date"		=&amp;gt; "0115",
	"x_amount"		=&amp;gt; "19.99",
	"x_description"		=&amp;gt; "Sample Transaction",
	"x_first_name"		=&amp;gt; "John",
	"x_last_name"		=&amp;gt; "Doe",
	"x_address"		=&amp;gt; "1234 Street",
	"x_state"			=&amp;gt; "WA",
	"x_zip"			=&amp;gt; "98004"
	// Additional fields can be added here as outlined in the AIM integration
	// guide at: &lt;A href="http://developer.authorize.net" target="_blank"&gt;http://developer.authorize.net&lt;/A&gt;
);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;to use the post value&amp;nbsp;$_POST["x_card_num"] from the previous from&amp;nbsp; formINPUT.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2011 13:46:56 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/aim-php-The-merchant-login-ID-or-password-is-invalid-or-the/m-p/19804#M10890</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2011-12-08T13:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: aim php •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-The-merchant-login-ID-or-password-is-invalid-or-the/m-p/19810#M10893</link>
      <description>&lt;P&gt;Just keep in mind that you really don't want to be sending your credit card over an unsecured connection. Better to get a developer account and set just this page to use it, that way you can use the test credit cards to test your form. You only need to go live and run your own credit card through once when everything's working in developer.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2011 14:35:42 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/aim-php-The-merchant-login-ID-or-password-is-invalid-or-the/m-p/19810#M10893</guid>
      <dc:creator>TJPride</dc:creator>
      <dc:date>2011-12-08T14:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: aim php •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-The-merchant-login-ID-or-password-is-invalid-or-the/m-p/34935#M19350</link>
      <description>&lt;P&gt;I can't believe we are still talking about this two years later! I see this answer being given over and over again --&lt;/P&gt;&lt;P&gt;"If you are integrating your website with Advanced Integration Method (AIM) using PHP, please be aware that&lt;BR /&gt;---the gateway URL is listed twice--once in the cURL configuration, and once again in the main body of the code." SO WHAT DO WE DO ABOUT IT?&amp;nbsp; DOESN'T THE URL IN THE MAIN BODY OF THE CODE OVER-WRITE THE cURL URL?&lt;BR /&gt;Then it says: 'USING THE TEST GATEWAY URL in the cURL section of the code will create an Error 13, as cURL would connect to the incorrect server."&amp;nbsp; SO DOES THAT MEAN WE SHOULDN'T EVER USE THE TEST GATEWAY IF WE'RE DEVELOPING IN AIM?&amp;nbsp; WE CAN ONLY USE THE PRODUCTION GATEWAY? AND IN TEST MODE?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Would somebody please make this clear?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2013 05:52:53 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/aim-php-The-merchant-login-ID-or-password-is-invalid-or-the/m-p/34935#M19350</guid>
      <dc:creator>auththch</dc:creator>
      <dc:date>2013-07-09T05:52:53Z</dc:date>
    </item>
  </channel>
</rss>

