<?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: Refund payments using AIM API in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Refund-payments-using-AIM-API/m-p/32781#M17326</link>
    <description>&lt;P&gt;Maybe is not getting the transactionid is there a reason for the double quote? and could you echo params before sending to authorize.net ?&lt;/P&gt;</description>
    <pubDate>Wed, 30 Jan 2013 02:02:44 GMT</pubDate>
    <dc:creator>RaynorC1emen7</dc:creator>
    <dc:date>2013-01-30T02:02:44Z</dc:date>
    <item>
      <title>Refund payments using AIM API</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Refund-payments-using-AIM-API/m-p/32778#M17323</link>
      <description>&lt;P&gt;I am having trouble Refunding a transcation using the AIM API. Here is my code so far using PHP:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$payment = new AuthnetAIM('blah', 'blahblah');
$payment-&amp;gt;setTransactionType("CREDIT"); //This is for refunds only
$payment-&amp;gt;setTransaction(XXXX1111, 1.00, "$transaction_id");
$payment-&amp;gt;setParameter("x_email", $email);
$payment-&amp;gt;setParameter("x_email_customer", TRUE); //Enable Authorize.net auto customer email
$payment-&amp;gt;setParameter("x_description", "Refund");
$payment-&amp;gt;process();&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I keep getting an error message saying that the expiration date is required. Any thoughts? In the documentation it says that only the last 4 of the credit card used, amount, and transaction ID are required.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2013 01:28:13 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Refund-payments-using-AIM-API/m-p/32778#M17323</guid>
      <dc:creator>three3</dc:creator>
      <dc:date>2013-01-30T01:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: Refund payments using AIM API</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Refund-payments-using-AIM-API/m-p/32779#M17324</link>
      <description>&lt;P&gt;Did you test it with a hardcode $transaction_id, because it could think this is a unlinked credit which the expiration date is required.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;could be this also&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://community.developer.authorize.net/t5/Integration-and-Testing/AIM-Refund-Issue/m-p/13022/highlight/true#M7865"&gt;http://community.developer.authorize.net/t5/Integration-and-Testing/AIM-Refund-Issue/m-p/13022/highlight/true#M7865&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2013 01:48:49 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Refund-payments-using-AIM-API/m-p/32779#M17324</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2013-01-30T01:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: Refund payments using AIM API</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Refund-payments-using-AIM-API/m-p/32780#M17325</link>
      <description>&lt;P&gt;Thanks for your response.&amp;nbsp;&lt;SPAN&gt;No matter if I send only 4 digits or XXXX and digits, it still does not work. Also, the transaction took place yesterday so it is "settled" and within the 120 day timeframe. Any other thoughts?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2013 01:53:30 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Refund-payments-using-AIM-API/m-p/32780#M17325</guid>
      <dc:creator>three3</dc:creator>
      <dc:date>2013-01-30T01:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Refund payments using AIM API</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Refund-payments-using-AIM-API/m-p/32781#M17326</link>
      <description>&lt;P&gt;Maybe is not getting the transactionid is there a reason for the double quote? and could you echo params before sending to authorize.net ?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2013 02:02:44 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Refund-payments-using-AIM-API/m-p/32781#M17326</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2013-01-30T02:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: Refund payments using AIM API</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Refund-payments-using-AIM-API/m-p/32783#M17328</link>
      <description>&lt;P&gt;I have done this with and without the double quotes but neither works. I have echoed out the variables and they contain the correct info. Is there a place with some sample code you know of?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2013 02:08:39 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Refund-payments-using-AIM-API/m-p/32783#M17328</guid>
      <dc:creator>three3</dc:creator>
      <dc:date>2013-01-30T02:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Refund payments using AIM API</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Refund-payments-using-AIM-API/m-p/32784#M17329</link>
      <description>&lt;P&gt;try a simple browser url post, copy the link to a text file and change it with your info&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_self" href="https://test.authorize.net/gateway/transact.dll?x_delim_data=TRUE&amp;amp;x_delim_char=|&amp;amp;x_relay_response=FALSE&amp;amp;x_method=CC&amp;amp;x_version=3.1&amp;amp;x_type=CREDIT&amp;amp;x_card_num=xxxx1111&amp;amp;x_amount=1.0&amp;amp;x_login=[yourLoginId]&amp;amp;x_tran_key=[yourTransactionKey]&amp;amp;x_trans_id=[transactionID]"&gt;link&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this is a Card Present account. replace x_trans_id with&amp;nbsp; x_ref_trans_id&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2013 02:24:50 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Refund-payments-using-AIM-API/m-p/32784#M17329</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2013-01-30T02:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: Refund payments using AIM API</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Refund-payments-using-AIM-API/m-p/32785#M17330</link>
      <description>&lt;P&gt;Here is a new code I found:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;require('../../config.inc.php');
    require('../../AuthnetXML.class.php');

    $xml = new AuthnetXML(AUTHNET_LOGIN, AUTHNET_TRANSKEY);
    $xml-&amp;gt;createTransactionRequest(array(
        'refId' =&amp;gt; rand(1000000, 100000000),
        'transactionRequest' =&amp;gt; array(
            'transactionType' =&amp;gt; 'refundTransaction',
            'amount' =&amp;gt; 1.00,
            'payment' =&amp;gt; array(
                'creditCard' =&amp;gt; array(
                    'cardNumber' =&amp;gt; 'XXXX1023',
                    'expirationDate' =&amp;gt; '122016',
                    'refTransId' =&amp;gt; '4926823799'
                )
            ),
            'authCode' =&amp;gt; '2165668159'
        ),
    ));&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;But is is given me an error. It says:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;The element 'creditCard' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has invalid child element 'refTransId' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'. List of possible elements expected: 'cardCode' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2013 02:35:01 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Refund-payments-using-AIM-API/m-p/32785#M17330</guid>
      <dc:creator>three3</dc:creator>
      <dc:date>2013-01-30T02:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: Refund payments using AIM API</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Refund-payments-using-AIM-API/m-p/32796#M17341</link>
      <description>&lt;P&gt;So is this a Card Present or Card Not Present account?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Schema&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="https://api.authorize.net/xml/v1/schema/AnetApiSchema.xsd"&gt;https://api.authorize.net/xml/v1/schema/AnetApiSchema.xsd&lt;/A&gt;&lt;/P&gt;&lt;P&gt;said refTransID is after authCode node and not in the payment node&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2013 12:18:08 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Refund-payments-using-AIM-API/m-p/32796#M17341</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2013-01-30T12:18:08Z</dc:date>
    </item>
  </channel>
</rss>

