<?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: API Variables in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/API-Variables/m-p/16812#M9452</link>
    <description>&lt;P&gt;Heh, the "quick integration" code is sadly next to useless. Download the API for your favorite programming language (PHP?), and look in the subfolders for doc (AIM.markdown) and lib (AuthorizeNnetAIM.php - if you scroll down, it gives a complete list of fields). AIM is really fairly straightforward from there, for the most part - let me know if you have further questions.&lt;/P&gt;</description>
    <pubDate>Wed, 07 Sep 2011 19:55:56 GMT</pubDate>
    <dc:creator>TJPride</dc:creator>
    <dc:date>2011-09-07T19:55:56Z</dc:date>
    <item>
      <title>API Variables</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/API-Variables/m-p/16764#M9431</link>
      <description>&lt;P&gt;Can someone point me to where I can find a complete list of API variables? I found the FORM variables in the Docs and have been trying to guess what the API variables would be based on those, but it's a little bit like throwing darts at a board :-)&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2011 01:30:42 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/API-Variables/m-p/16764#M9431</guid>
      <dc:creator>jwcarlton</dc:creator>
      <dc:date>2011-09-07T01:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: API Variables</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/API-Variables/m-p/16780#M9437</link>
      <description>&lt;P&gt;Which API and integration method are you using?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2011 15:15:40 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/API-Variables/m-p/16780#M9437</guid>
      <dc:creator>TJPride</dc:creator>
      <dc:date>2011-09-07T15:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: API Variables</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/API-Variables/m-p/16792#M9443</link>
      <description>&lt;P&gt;I'm using AIM, but as for which API... I didn't know there was more than one option? I'm strictly going by the demo on the "15-minute integration" page, which uses API variables, but then I can't find anything in the Docs to help me expand on it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;$response &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; $transaction&lt;/SPAN&gt;&lt;SPAN&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;authorizeAndCapture&lt;/SPAN&gt;&lt;SPAN&gt;();&lt;/SPAN&gt;﻿&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monaco, monospace; font-size: 13px; line-height: normal; white-space: pre;"&gt;&lt;SPAN style="color: #000000;"&gt;$transaction &lt;/SPAN&gt;&lt;SPAN style="color: #666600;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000088;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #660066;"&gt;AuthorizeNetAIM&lt;/SPAN&gt;&lt;SPAN style="color: #666600;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #008800;"&gt;'YOUR_API_LOGIN_ID'&lt;/SPAN&gt;&lt;SPAN style="color: #666600;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #008800;"&gt;'YOUR_TRANSACTION_KEY'&lt;/SPAN&gt;&lt;SPAN style="color: #666600;"&gt;);&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;$transaction&lt;/SPAN&gt;&lt;SPAN style="color: #666600;"&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;amount &lt;/SPAN&gt;&lt;SPAN style="color: #666600;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #008800;"&gt;'9.99'&lt;/SPAN&gt;&lt;SPAN style="color: #666600;"&gt;;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;$transaction&lt;/SPAN&gt;&lt;SPAN style="color: #666600;"&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;card_num &lt;/SPAN&gt;&lt;SPAN style="color: #666600;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #008800;"&gt;'4007000000027'&lt;/SPAN&gt;&lt;SPAN style="color: #666600;"&gt;;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;$transaction&lt;/SPAN&gt;&lt;SPAN style="color: #666600;"&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;exp_date &lt;/SPAN&gt;&lt;SPAN style="color: #666600;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #008800;"&gt;'10/16'&lt;/SPAN&gt;&lt;SPAN style="color: #666600;"&gt;;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monaco, monospace; font-size: 13px; line-height: normal; white-space: pre;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monaco, monospace; font-size: 13px; white-space: pre;"&gt;&lt;SPAN style="line-height: normal; color: #000088;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="line-height: normal; color: #666600;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="line-height: normal; color: #000000;"&gt;$response&lt;/SPAN&gt;&lt;SPAN style="line-height: normal; color: #666600;"&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal; color: #000000;"&gt;approved&lt;/SPAN&gt;&lt;SPAN style="line-height: normal; color: #666600;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="line-height: normal; color: #666600;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="line-height: normal; color: #000000;"&gt;&lt;BR /&gt;&amp;nbsp; echo &lt;/SPAN&gt;&lt;SPAN style="line-height: normal; color: #008800;"&gt;"&amp;lt;h1&amp;gt;Success! The test credit card has been charged!&amp;lt;/h1&amp;gt;"&lt;/SPAN&gt;&lt;SPAN style="line-height: normal; color: #666600;"&gt;;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal; color: #000000;"&gt;&lt;BR /&gt;&amp;nbsp; echo &lt;/SPAN&gt;&lt;SPAN style="line-height: normal; color: #008800;"&gt;"Transaction ID: "&lt;/SPAN&gt;&lt;SPAN style="line-height: normal; color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="line-height: normal; color: #000000;"&gt; $response&lt;/SPAN&gt;&lt;SPAN style="line-height: normal; color: #666600;"&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal; color: #000000;"&gt;transaction_id&lt;/SPAN&gt;&lt;SPAN style="line-height: normal; color: #666600;"&gt;;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal; color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal; color: #666600;"&gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: monaco, monospace; font-size: 13px; white-space: pre;"&gt;&lt;SPAN style="line-height: normal; color: #000088;"&gt;else&lt;/SPAN&gt;&lt;SPAN style="line-height: normal; color: #000000;"&gt; echo $response&lt;/SPAN&gt;&lt;SPAN style="line-height: normal; color: #666600;"&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="line-height: normal; color: #000000;"&gt;error_message&lt;/SPAN&gt;&lt;SPAN style="line-height: normal; color: #666600;"&gt;;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2011 16:59:11 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/API-Variables/m-p/16792#M9443</guid>
      <dc:creator>jwcarlton</dc:creator>
      <dc:date>2011-09-07T16:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: API Variables</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/API-Variables/m-p/16812#M9452</link>
      <description>&lt;P&gt;Heh, the "quick integration" code is sadly next to useless. Download the API for your favorite programming language (PHP?), and look in the subfolders for doc (AIM.markdown) and lib (AuthorizeNnetAIM.php - if you scroll down, it gives a complete list of fields). AIM is really fairly straightforward from there, for the most part - let me know if you have further questions.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2011 19:55:56 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/API-Variables/m-p/16812#M9452</guid>
      <dc:creator>TJPride</dc:creator>
      <dc:date>2011-09-07T19:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: API Variables</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/API-Variables/m-p/16814#M9453</link>
      <description>&lt;P&gt;Here's an example of some code you can use to charge using AIM:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;    $authorize = new AuthorizeNetAIM(
        $GLOBALS['_authorize_id'], $GLOBALS['_authorize_key']);
    $authorize-&amp;gt;setSandbox(false);
    // SET TO TRUE IF USING SANDBOX ACCOUNT

    $fields = array(
        'first_name' =&amp;gt; $_POST['first'],
        'last_name' =&amp;gt; $_POST['last'],
        'company' =&amp;gt; $_POST['company'],
        'address' =&amp;gt; $_POST['address'],
        'city' =&amp;gt; $_POST['city'],
        'state' =&amp;gt; $_POST['state'],
        'zip' =&amp;gt; $_POST['zip'],
        'country' =&amp;gt; 'US',

        'phone' =&amp;gt; $_POST['phone'],
        'email' =&amp;gt; $_POST['email'],

        'customer_ip' =&amp;gt; $_SERVER['REMOTE_ADDR'],

        'description' =&amp;gt; 'order description here',
        'amount' =&amp;gt; $amount,

        'card_num' =&amp;gt; $_POST['card_number'],
        'exp_date' =&amp;gt; sprintf('%02d%02d', $_POST['card_exp_month'], ($_POST['card_exp_year'] % 1000)),
        'card_code' =&amp;gt; $_POST['card_ccv']
    );
    $authorize-&amp;gt;setFields($fields);

    $result = $authorize-&amp;gt;authorizeAndCapture();

    if ($result-&amp;gt;error || $result-&amp;gt;{'response_code'} != 1)
        $errors[] = "Charge declined - {$result-&amp;gt;response_reason_text}";&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2011 20:02:33 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/API-Variables/m-p/16814#M9453</guid>
      <dc:creator>TJPride</dc:creator>
      <dc:date>2011-09-07T20:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: API Variables</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/API-Variables/m-p/16866#M9476</link>
      <description>&lt;P&gt;Thanks a lot for that; especially the pointer to the Doc files in the SDK (I didn't even &lt;EM&gt;think&lt;/EM&gt; to look there; I was looking at the PDFs on the site).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It LOOKS like the sample code isn't too much different from the sample; it just skips out on setting the $fields() array, and sets the variables like so:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$authorize-&amp;gt;first_name = $_POST['first'];&lt;/P&gt;&lt;P&gt;$authorize-&amp;gt;last_name = $_POST['last'];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And so on. But still, without the list of variables that could be set, I don't see how anyone could have figured that out on their own. The example you posted here would be much better on the "15-minute integration" page than what is currently there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2011 05:26:33 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/API-Variables/m-p/16866#M9476</guid>
      <dc:creator>jwcarlton</dc:creator>
      <dc:date>2011-09-08T05:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: API Variables</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/API-Variables/m-p/16882#M9484</link>
      <description>&lt;P&gt;I tried the PDF's first as well, but had to give up because they were focused around the XML interface and not the PHP one layered on top and didn't give specific code. I did use the PDF to reference a few things, but this is mostly a mash-up of the markdown examples and what I learned in the forum (after some weeks, response often isn't forthcoming).&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2011 14:45:42 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/API-Variables/m-p/16882#M9484</guid>
      <dc:creator>TJPride</dc:creator>
      <dc:date>2011-09-08T14:45:42Z</dc:date>
    </item>
  </channel>
</rss>

