<?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: How to use AUTH_ONLY with CC method in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-to-use-AUTH-ONLY-with-CC-method/m-p/17368#M9715</link>
    <description>&lt;P&gt;No. Read more at &lt;A target="_blank" href="http://developer.authorize.net/integration/"&gt;http://developer.authorize.net/integration/&lt;/A&gt;﻿&lt;/P&gt;</description>
    <pubDate>Tue, 27 Sep 2011 16:21:55 GMT</pubDate>
    <dc:creator>RaynorC1emen7</dc:creator>
    <dc:date>2011-09-27T16:21:55Z</dc:date>
    <item>
      <title>How to use AUTH_ONLY with CC method</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-to-use-AUTH-ONLY-with-CC-method/m-p/17356#M9709</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it necessarly that if x_type is "AUTH_ONLY" then x_method must be "ECHECK﻿", ﻿if yes then how to implement AUTH_ONLY (x_type) with CC (x_method)&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2011 13:30:24 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-to-use-AUTH-ONLY-with-CC-method/m-p/17356#M9709</guid>
      <dc:creator>ps</dc:creator>
      <dc:date>2011-09-27T13:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to use AUTH_ONLY with CC method</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-to-use-AUTH-ONLY-with-CC-method/m-p/17368#M9715</link>
      <description>&lt;P&gt;No. Read more at &lt;A target="_blank" href="http://developer.authorize.net/integration/"&gt;http://developer.authorize.net/integration/&lt;/A&gt;﻿&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2011 16:21:55 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-to-use-AUTH-ONLY-with-CC-method/m-p/17368#M9715</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2011-09-27T16:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to use AUTH_ONLY with CC method</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-to-use-AUTH-ONLY-with-CC-method/m-p/17416#M9738</link>
      <description>&lt;P&gt;Maybe something like this (untested since it's adapted from my authorize and capture implementation):&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(true);
// Set to false if using production 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; "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);

if ($result-&amp;gt;error || $result-&amp;gt;{'response_code'} != 1)
    $errors[] = "Authorization declined - {$result-&amp;gt;response_reason_text}";

else
    // do something with transaction ID so it can be captured later&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Or you can just call the authorizeOnly function directly:&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(true);
// Set to false if using production account

$result = $authorize-&amp;gt;authorizeOnly($amount, $card_num, $exp_date);

// Process results&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2011 06:39:27 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-to-use-AUTH-ONLY-with-CC-method/m-p/17416#M9738</guid>
      <dc:creator>TJPride</dc:creator>
      <dc:date>2011-09-28T06:39:27Z</dc:date>
    </item>
  </channel>
</rss>

