<?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 transaction error code &amp;quot;6&amp;quot; and error message &amp;quot;The credit card number is in in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Refund-transaction-error-code-quot-6-quot-and-error-message-quot/m-p/54311#M29315</link>
    <description>&lt;P&gt;It is a settled transaction or how old is the transaction?&lt;/P&gt;&lt;P&gt;If I remember correctly, you can't refund an unsettled transaction or transaction that older then 120 days.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;updated 120 days&lt;/P&gt;&lt;P&gt;is in the AIM doc&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.authorize.net/content/dam/authorize/documents/AIM_guide.pdf" target="_blank"&gt;http://www.authorize.net/content/dam/authorize/documents/AIM_guide.pdf&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Apr 2016 20:16:00 GMT</pubDate>
    <dc:creator>RaynorC1emen7</dc:creator>
    <dc:date>2016-04-12T20:16:00Z</dc:date>
    <item>
      <title>Refund transaction error code "6" and error message "The credit card number is invalid"</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Refund-transaction-error-code-quot-6-quot-and-error-message-quot/m-p/54306#M29310</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am trying to integrate the &amp;nbsp;refund functionality in our Ecommerce system using Authorize.net PHP SDK, however, it seems the API and the documentions regarding the card number in the refund section is inconsistent. The API doc states that only the last four digits of the card is needed. On the other hard, when the request gets sent an error is generated and states "The credit card number is invalid". If I add the full credit card &amp;nbsp;number then the refund gets processed successfully. &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;Why is there inconsistency between documentation and API? &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;How to process the refund using only the last four digits?. I also tried adding X as suggested here &lt;/SPAN&gt;&lt;A href="https://community.developer.cybersource.com/t5/Integration-and-Testing/Refund-payments-using-AIM-API/td-p/32778" target="_blank"&gt;&lt;SPAN&gt;https://community.developer.authorize.net/t5/Integration-and-Testing/Refund-payments-using-AIM-API/td-p/32778&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt; , but this didn’t work. &lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am testing it using my SANDBOX credentials. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2016 19:02:03 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Refund-transaction-error-code-quot-6-quot-and-error-message-quot/m-p/54306#M29310</guid>
      <dc:creator>mido</dc:creator>
      <dc:date>2016-04-12T19:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: Refund transaction error code "6" and error message "The credit card number is in</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Refund-transaction-error-code-quot-6-quot-and-error-message-quot/m-p/54307#M29311</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/19916"&gt;@mido﻿&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When issuing a refund, you must include either a full card and expiration, or previous transID and last 4 of card number. If they don't have the last 4, you&amp;nbsp;can use getTransactionDetails to get the payment object needed to issue a refund.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have a ticket in to update our documentation to make this more clear.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Richard&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2016 19:30:15 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Refund-transaction-error-code-quot-6-quot-and-error-message-quot/m-p/54307#M29311</guid>
      <dc:creator>RichardH</dc:creator>
      <dc:date>2016-04-12T19:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: Refund transaction error code "6" and error message "The credit card number is in</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Refund-transaction-error-code-quot-6-quot-and-error-message-quot/m-p/54310#M29314</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/7546"&gt;@RichardH﻿&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the prompt reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I followed your suggestion, however, I get a new error. The error code is 54 and the message is "&lt;STRONG&gt;:&lt;/STRONG&gt;&lt;SPAN&gt;The referenced transaction does not meet the criteria for issuing a credit&lt;/SPAN&gt;". However, if I added the full card number I don't get any error code. I attached a copy of the request that throws an error. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="pun"&gt;&amp;lt;?&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;xml version&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt;&lt;SPAN class="str"&gt;"1.0"&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; encoding&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt;&lt;SPAN class="str"&gt;"UTF-8"&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;?&amp;gt;&lt;/SPAN&gt;
&lt;SPAN class="tag"&gt;&amp;lt;createTransactionRequest&lt;/SPAN&gt; &lt;SPAN class="atn"&gt;xmlns&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt;&lt;SPAN class="atv"&gt;"AnetApi/xml/v1/schema/AnetApiSchema.xsd"&lt;/SPAN&gt;&lt;SPAN class="tag"&gt;&amp;gt;&lt;/SPAN&gt;
   &lt;SPAN class="tag"&gt;&amp;lt;merchantAuthentication&amp;gt;&lt;/SPAN&gt;
      &lt;SPAN class="tag"&gt;&amp;lt;name&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;&amp;lt;![CDATA[xxxxxx]]&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="tag"&gt;&amp;lt;/name&amp;gt;&lt;/SPAN&gt;
      &lt;SPAN class="tag"&gt;&amp;lt;transactionKey&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;xxxx&lt;/SPAN&gt;&lt;SPAN class="tag"&gt;&amp;lt;/transactionKey&amp;gt;&lt;/SPAN&gt;
   &lt;SPAN class="tag"&gt;&amp;lt;/merchantAuthentication&amp;gt;&lt;/SPAN&gt;
   &lt;SPAN class="tag"&gt;&amp;lt;refId&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;&amp;lt;![CDATA[ref1460490748]]&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="tag"&gt;&amp;lt;/refId&amp;gt;&lt;/SPAN&gt;
   &lt;SPAN class="tag"&gt;&amp;lt;transactionRequest&amp;gt;&lt;/SPAN&gt;
      &lt;SPAN class="tag"&gt;&amp;lt;transactionType&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;&amp;lt;![CDATA[refundTransaction]]&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="tag"&gt;&amp;lt;/transactionType&amp;gt;&lt;/SPAN&gt;
      &lt;SPAN class="tag"&gt;&amp;lt;amount&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;6.69&lt;/SPAN&gt;&lt;SPAN class="tag"&gt;&amp;lt;/amount&amp;gt;&lt;/SPAN&gt;
      &lt;SPAN class="tag"&gt;&amp;lt;payment&amp;gt;&lt;/SPAN&gt;
         &lt;SPAN class="tag"&gt;&amp;lt;creditCard&amp;gt;&lt;/SPAN&gt;
            &lt;SPAN class="tag"&gt;&amp;lt;cardNumber&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;&amp;lt;![CDATA[1111]]&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="tag"&gt;&amp;lt;/cardNumber&amp;gt;&lt;/SPAN&gt;
            &lt;SPAN class="tag"&gt;&amp;lt;expirationDate&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;xxxx&lt;/SPAN&gt;&lt;SPAN class="tag"&gt;&amp;lt;/expirationDate&amp;gt;&lt;/SPAN&gt;
         &lt;SPAN class="tag"&gt;&amp;lt;/creditCard&amp;gt;&lt;/SPAN&gt;
      &lt;SPAN class="tag"&gt;&amp;lt;/payment&amp;gt;&lt;/SPAN&gt;
      &lt;SPAN class="tag"&gt;&amp;lt;refTransId&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;&amp;lt;![CDATA[2253946379]]&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="tag"&gt;&amp;lt;/refTransId&amp;gt;&lt;/SPAN&gt;
   &lt;SPAN class="tag"&gt;&amp;lt;/transactionRequest&amp;gt;&lt;/SPAN&gt;
&lt;SPAN class="tag"&gt;&amp;lt;/createTransactionRequest&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2016 20:11:19 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Refund-transaction-error-code-quot-6-quot-and-error-message-quot/m-p/54310#M29314</guid>
      <dc:creator>mido</dc:creator>
      <dc:date>2016-04-12T20:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: Refund transaction error code "6" and error message "The credit card number is in</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Refund-transaction-error-code-quot-6-quot-and-error-message-quot/m-p/54311#M29315</link>
      <description>&lt;P&gt;It is a settled transaction or how old is the transaction?&lt;/P&gt;&lt;P&gt;If I remember correctly, you can't refund an unsettled transaction or transaction that older then 120 days.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;updated 120 days&lt;/P&gt;&lt;P&gt;is in the AIM doc&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.authorize.net/content/dam/authorize/documents/AIM_guide.pdf" target="_blank"&gt;http://www.authorize.net/content/dam/authorize/documents/AIM_guide.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2016 20:16:00 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Refund-transaction-error-code-quot-6-quot-and-error-message-quot/m-p/54311#M29315</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2016-04-12T20:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Refund transaction error code "6" and error message "The credit card number is in</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Refund-transaction-error-code-quot-6-quot-and-error-message-quot/m-p/54312#M29316</link>
      <description>&lt;P&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/1353"&gt;@RaynorC1emen7﻿&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It was created today, however, the error doesn't happen when you submit the full card number. If it's throwing an error because it's not settled yet then the same response should be returned if the full card number is used and that doesn't happen.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2016 20:18:39 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Refund-transaction-error-code-quot-6-quot-and-error-message-quot/m-p/54312#M29316</guid>
      <dc:creator>mido</dc:creator>
      <dc:date>2016-04-12T20:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Refund transaction error code "6" and error message "The credit card number is in</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Refund-transaction-error-code-quot-6-quot-and-error-message-quot/m-p/54313#M29317</link>
      <description>&lt;P&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/19916"&gt;@mido﻿&lt;/a&gt;&amp;nbsp;I would first check response code 54 to see if any of the conditions apply:&amp;nbsp;&lt;A href="https://developer.authorize.net/api/reference/responseCodes.html?code=54" target="_blank"&gt;https://developer.authorize.net/api/reference/responseCodes.html?code=54&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the transaction is older than 120 days, your merchant can apply for expanded credit-return capabilities at&amp;nbsp;&lt;A href="http://www.authorize.net/content/dam/authorize/documents/ecc.pdf" target="_blank"&gt;http://www.authorize.net/content/dam/authorize/documents/ecc.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Richard&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2016 20:19:43 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Refund-transaction-error-code-quot-6-quot-and-error-message-quot/m-p/54313#M29317</guid>
      <dc:creator>RichardH</dc:creator>
      <dc:date>2016-04-12T20:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: Refund transaction error code "6" and error message "The credit card number is in</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Refund-transaction-error-code-quot-6-quot-and-error-message-quot/m-p/54314#M29318</link>
      <description>&lt;P&gt;When you pass in the full cc#, it think you are doing a unlinked credit.&lt;/P&gt;&lt;P&gt;Also in the AIM doc.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2016 20:28:24 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Refund-transaction-error-code-quot-6-quot-and-error-message-quot/m-p/54314#M29318</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2016-04-12T20:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Refund transaction error code "6" and error message "The credit card number is in</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Refund-transaction-error-code-quot-6-quot-and-error-message-quot/m-p/54315#M29319</link>
      <description>&lt;P&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/1353"&gt;@RaynorC1emen7﻿&lt;/a&gt;, Thanks for the heads up !!!!.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/7546"&gt;@RichardH﻿&lt;/a&gt;, The only reason I could think of is the transaction has not been settled yet. I will wait for it till it's settled and try it again. Thanks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2016 20:42:23 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Refund-transaction-error-code-quot-6-quot-and-error-message-quot/m-p/54315#M29319</guid>
      <dc:creator>mido</dc:creator>
      <dc:date>2016-04-12T20:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Refund transaction error code "6" and error message "The credit card number is in</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Refund-transaction-error-code-quot-6-quot-and-error-message-quot/m-p/54320#M29324</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/7546"&gt;@RichardH﻿&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help. I tried it today morning and the refund was successful. The transactions needed to be settled first and that what caused the 54 error code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It will be helpful if the sample code here&amp;nbsp;&lt;A href="https://github.com/AuthorizeNet/sample-code-php/tree/547daabc90ff0f579530d6e5295c02d52e27b257/PaymentTransactions" target="_blank"&gt;https://github.com/AuthorizeNet/sample-code-php/tree/547daabc90ff0f579530d6e5295c02d52e27b257/PaymentTransactions&lt;/A&gt; included an example to show how to issue a refund using the TransID and this example&amp;nbsp;&lt;A href="https://github.com/AuthorizeNet/sample-code-php/blob/master/PaymentTransactions/refund-transaction.php" target="_blank"&gt;https://github.com/AuthorizeNet/sample-code-php/blob/master/PaymentTransactions/refund-transaction.php&lt;/A&gt; should be renamed to&amp;nbsp;&lt;SPAN&gt;unlinked-credit-refund transaction .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2016 15:12:26 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Refund-transaction-error-code-quot-6-quot-and-error-message-quot/m-p/54320#M29324</guid>
      <dc:creator>mido</dc:creator>
      <dc:date>2016-04-13T15:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Refund transaction error code "6" and error message "The credit card number is in</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Refund-transaction-error-code-quot-6-quot-and-error-message-quot/m-p/54321#M29325</link>
      <description>&lt;P&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/19916"&gt;@mido﻿&lt;/a&gt;&amp;nbsp;I'll pass on your suggestions to the API team.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Richard&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2016 15:14:14 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Refund-transaction-error-code-quot-6-quot-and-error-message-quot/m-p/54321#M29325</guid>
      <dc:creator>RichardH</dc:creator>
      <dc:date>2016-04-13T15:14:14Z</dc:date>
    </item>
  </channel>
</rss>

