<?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 AIM 103 Trans Key ERROR, with LIVE and Sandbox Gateways in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-103-Trans-Key-ERROR-with-LIVE-and-Sandbox-Gateways/m-p/25019#M13371</link>
    <description>&lt;P&gt;Opencart 1.5.2.1, fresh install, browser cleared, full SSL with curl. I've posted this in the OpenCart forum too.&lt;BR /&gt;&lt;BR /&gt;I'm having a nightmare getting Authorize.net AIM module to work. I have a valid sandbox account with Authorize.net and correct login_id (it's not the username) and tran_key. Direct Response is set to YES in Gateway.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In OpenCart /catalog/controller/payment/authorizenet_aim.php I've added a log write snippet to see what Anet was getting and sending back.&lt;BR /&gt;&lt;BR /&gt;CURL INIT URL:&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="https://test.authorize.net/gateway/transact.dll"&gt;https://test.authorize.net/gateway/transact.dll&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;CART VIA AIM TO GATEWAY:&lt;BR /&gt;x_login=XXX&amp;amp;x_tran_key=XXX&amp;amp;x_version=3.1&amp;amp;x_delim_data=true&amp;amp;x_delim_char=%2C&amp;amp;x_encap_char=%22&amp;amp;x_relay_response=false&amp;amp;x_first_name=John&amp;amp;x_last_name=Doe&amp;amp;x_company=&amp;amp;x_address=10+Dev+Null+St&amp;amp;x_city=Dev+Null&amp;amp;x_state=California&amp;amp;x_zip=90000&amp;amp;x_country=United+States&amp;amp;x_phone=8884445555&amp;amp;x_customer_ip=XXX&amp;amp;x_email=johndoe%40dev.null&amp;amp;x_description=XXX&amp;amp;x_amount=6.44&amp;amp;x_currency_code=USD&amp;amp;x_method=CC&amp;amp;x_type=AUTH_CAPTURE&amp;amp;x_card_num=4007000000027&amp;amp;x_exp_date=042013&amp;amp;x_card_code=123&amp;amp;x_invoice_num=17&lt;BR /&gt;&lt;BR /&gt;BACK FROM ANET:&lt;BR /&gt;3,1,103,This transaction cannot be accepted.,,P,0,,,0.00,,auth_capture,,,,,,,,,,,,,,,,,,,,,,,,,,XXX,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,XXX,3.1,true,,,",false,John,Doe,,10 Dev Null St,Dev Null,California,90000,United States,8884445555,XXX,johndoe@dev.null,SuperUltralightBackpacking.com,6.44,USD,CC,AUTH_CAPTURE,4007000000027,042013,123,17&lt;BR /&gt;&lt;BR /&gt;3 means processing error and 103 means tran_key no good, which is absolutely NOT the case. It's something else, I just can't figure it out. I've tried on my LIVE account (not sandbox, not test, and with my LIVE versions of login_id and tran_key) with a real CC and it did exactly the same.&lt;BR /&gt;&lt;BR /&gt;Hopefully someone can help, because I'm sitting on new inventory that I need to move!&lt;/P&gt;</description>
    <pubDate>Wed, 28 Mar 2012 02:03:45 GMT</pubDate>
    <dc:creator>AuthnetDev</dc:creator>
    <dc:date>2012-03-28T02:03:45Z</dc:date>
    <item>
      <title>AIM 103 Trans Key ERROR, with LIVE and Sandbox Gateways</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-103-Trans-Key-ERROR-with-LIVE-and-Sandbox-Gateways/m-p/25019#M13371</link>
      <description>&lt;P&gt;Opencart 1.5.2.1, fresh install, browser cleared, full SSL with curl. I've posted this in the OpenCart forum too.&lt;BR /&gt;&lt;BR /&gt;I'm having a nightmare getting Authorize.net AIM module to work. I have a valid sandbox account with Authorize.net and correct login_id (it's not the username) and tran_key. Direct Response is set to YES in Gateway.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In OpenCart /catalog/controller/payment/authorizenet_aim.php I've added a log write snippet to see what Anet was getting and sending back.&lt;BR /&gt;&lt;BR /&gt;CURL INIT URL:&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="https://test.authorize.net/gateway/transact.dll"&gt;https://test.authorize.net/gateway/transact.dll&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;CART VIA AIM TO GATEWAY:&lt;BR /&gt;x_login=XXX&amp;amp;x_tran_key=XXX&amp;amp;x_version=3.1&amp;amp;x_delim_data=true&amp;amp;x_delim_char=%2C&amp;amp;x_encap_char=%22&amp;amp;x_relay_response=false&amp;amp;x_first_name=John&amp;amp;x_last_name=Doe&amp;amp;x_company=&amp;amp;x_address=10+Dev+Null+St&amp;amp;x_city=Dev+Null&amp;amp;x_state=California&amp;amp;x_zip=90000&amp;amp;x_country=United+States&amp;amp;x_phone=8884445555&amp;amp;x_customer_ip=XXX&amp;amp;x_email=johndoe%40dev.null&amp;amp;x_description=XXX&amp;amp;x_amount=6.44&amp;amp;x_currency_code=USD&amp;amp;x_method=CC&amp;amp;x_type=AUTH_CAPTURE&amp;amp;x_card_num=4007000000027&amp;amp;x_exp_date=042013&amp;amp;x_card_code=123&amp;amp;x_invoice_num=17&lt;BR /&gt;&lt;BR /&gt;BACK FROM ANET:&lt;BR /&gt;3,1,103,This transaction cannot be accepted.,,P,0,,,0.00,,auth_capture,,,,,,,,,,,,,,,,,,,,,,,,,,XXX,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,XXX,3.1,true,,,",false,John,Doe,,10 Dev Null St,Dev Null,California,90000,United States,8884445555,XXX,johndoe@dev.null,SuperUltralightBackpacking.com,6.44,USD,CC,AUTH_CAPTURE,4007000000027,042013,123,17&lt;BR /&gt;&lt;BR /&gt;3 means processing error and 103 means tran_key no good, which is absolutely NOT the case. It's something else, I just can't figure it out. I've tried on my LIVE account (not sandbox, not test, and with my LIVE versions of login_id and tran_key) with a real CC and it did exactly the same.&lt;BR /&gt;&lt;BR /&gt;Hopefully someone can help, because I'm sitting on new inventory that I need to move!&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2012 02:03:45 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-103-Trans-Key-ERROR-with-LIVE-and-Sandbox-Gateways/m-p/25019#M13371</guid>
      <dc:creator>AuthnetDev</dc:creator>
      <dc:date>2012-03-28T02:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: AIM 103 Trans Key ERROR, with LIVE and Sandbox Gateways</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-103-Trans-Key-ERROR-with-LIVE-and-Sandbox-Gateways/m-p/25027#M13375</link>
      <description>&lt;P&gt;Error 103 with AIM would be bad login ID or transaction key. You'd be surprised how many people mess those up and think they haven't. I even did that myself once. Did you try generating a new transaction key?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2012 07:13:19 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-103-Trans-Key-ERROR-with-LIVE-and-Sandbox-Gateways/m-p/25027#M13375</guid>
      <dc:creator>TJPride</dc:creator>
      <dc:date>2012-03-28T07:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: AIM 103 Trans Key ERROR, with LIVE and Sandbox Gateways</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-103-Trans-Key-ERROR-with-LIVE-and-Sandbox-Gateways/m-p/25065#M13391</link>
      <description>&lt;P&gt;Hi TJ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the reply, but everything you mentioned was already covered in my post. I've heard that if you are using a domain name that hasn't AIM'd to the gateway before sometimes you have to reset the login_id as well? Do you think that &amp;nbsp;could be it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you see anything in the query strings I posted that could be the issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As I mentioned, I has a live and sandbox acct and have fresh trans keys. Sorry, but I'm not that bad at copy pasting. Plus I have another domain that is AIMing just fine to my live gateway.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2012 16:42:37 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-103-Trans-Key-ERROR-with-LIVE-and-Sandbox-Gateways/m-p/25065#M13391</guid>
      <dc:creator>AuthnetDev</dc:creator>
      <dc:date>2012-03-28T16:42:37Z</dc:date>
    </item>
    <item>
      <title>SOLVED! Re: AIM 103 Trans Key ERROR, with LIVE and Sandbox Gateways</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-103-Trans-Key-ERROR-with-LIVE-and-Sandbox-Gateways/m-p/25073#M13395</link>
      <description>&lt;P&gt;After 48 grueling hours of debugging, I found and resolved the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is LINE 103 in OPENCART:&lt;BR /&gt;/catalog/controller/payment/authorizenet_aim.php&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($data));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Per PHP manual commenter:&lt;BR /&gt;&lt;A target="_blank" href="http://www.php.net/manual/en/function.http-build-query.php#102324"&gt;http://www.php.net/manual/en/function.http-build-query.php#102324&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to explicitly add the arg separater with http_build_query!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So to fix OpenCart's AIM all you need to do is change LINE 103 to:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($data, '', '&amp;amp;'));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And you'll be good to go. I truly hope this helps someone, because it was a huge pain in the *&amp;amp;@ to figure out.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2012 18:14:39 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-103-Trans-Key-ERROR-with-LIVE-and-Sandbox-Gateways/m-p/25073#M13395</guid>
      <dc:creator>AuthnetDev</dc:creator>
      <dc:date>2012-03-28T18:14:39Z</dc:date>
    </item>
  </channel>
</rss>

