<?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: AcceptJS Refund a transaction in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AcceptJS-Refund-a-transaction/m-p/57610#M32313</link>
    <description>&lt;P&gt;Thanks for the help. Now I'm getting a&amp;nbsp;E00027 error with&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="ng-binding"&gt;&lt;SPAN class="feature-item-title text-uppercase"&gt;CODE:&lt;/SPAN&gt; 54&lt;/P&gt;&lt;P class="ng-binding"&gt;&lt;SPAN class="feature-item-title text-uppercase"&gt;EXPLANATION:&lt;/SPAN&gt; The referenced transaction does not meet the criteria for issuing a credit.&lt;/P&gt;&lt;P class="ng-binding"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="ng-binding"&gt;Any suggestions? Does the transaction need to be 'settled' before you issue a 'refund' on the transaction? If so, how can you cancel a transaction if it has been captured but not settled.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Apr 2017 14:08:52 GMT</pubDate>
    <dc:creator>joshyboyrules</dc:creator>
    <dc:date>2017-04-10T14:08:52Z</dc:date>
    <item>
      <title>AcceptJS Refund a transaction</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AcceptJS-Refund-a-transaction/m-p/57601#M32305</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to refund a transaction using NodeJS (backend)&amp;nbsp;/ AcceptJS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is what I'm trying to do.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Get opaqueData from AcceptJS (so I don't have to send CC info to my server)&lt;/LI&gt;&lt;LI&gt;Using opaqueData, doing a authorize and capture on the CC in my NodeJS backend&lt;/LI&gt;&lt;LI&gt;I save the transactionId and other response information from step 2 into my db&lt;/LI&gt;&lt;LI&gt;Refund the authorize and capture transaction from step 2 in my NodeJS backend.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I'm running into an error with step 4, the message I get back is 'Credit card number is required.'. However, I don't want to save the credit card information on my server. How do I go about doing a refund of a transaction that was initiated using the opaqueData from AcceptJS?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I read that you cannot use the nonce/opaqueData from step 1 for the refund.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 16:57:34 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/AcceptJS-Refund-a-transaction/m-p/57601#M32305</guid>
      <dc:creator>joshyboyrules</dc:creator>
      <dc:date>2017-04-07T16:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: AcceptJS Refund a transaction</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AcceptJS-Refund-a-transaction/m-p/57603#M32307</link>
      <description>&lt;P&gt;I'm not sure if this will help, but here's what I did. &amp;nbsp;My backend is C#, but I'm using Accept.js and&amp;nbsp;&lt;SPAN&gt;opaqueData in the front-end so Credit Cards numbers don't touch my server.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In my web site (asp.net MVC). &amp;nbsp;If the transaction is settled, you need to do a refund and specify the refund amount. &amp;nbsp;If it's not settled, you do a void. &amp;nbsp;As a side note, it works the same for ACH too: Void and Debit.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here's some of&amp;nbsp;my c# code with my comment. &amp;nbsp;I think it will help you:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;            /*
                When issuing a credit card refund, the request must include either a full card number and expiration, 
                or previous transID and last 4 digits of the card number. If you don't have the last 4 digits, 
                you can use getTransactionDetails to get the payment object needed to issue a refund.               
            */
            var creditCard = new creditCardType
            {
                cardNumber = CCLast4Digits,
                expirationDate = "XXXX"
            };

   &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps!&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 18:04:13 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/AcceptJS-Refund-a-transaction/m-p/57603#M32307</guid>
      <dc:creator>dnsBuffaloNY</dc:creator>
      <dc:date>2017-04-07T18:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: AcceptJS Refund a transaction</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AcceptJS-Refund-a-transaction/m-p/57610#M32313</link>
      <description>&lt;P&gt;Thanks for the help. Now I'm getting a&amp;nbsp;E00027 error with&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="ng-binding"&gt;&lt;SPAN class="feature-item-title text-uppercase"&gt;CODE:&lt;/SPAN&gt; 54&lt;/P&gt;&lt;P class="ng-binding"&gt;&lt;SPAN class="feature-item-title text-uppercase"&gt;EXPLANATION:&lt;/SPAN&gt; The referenced transaction does not meet the criteria for issuing a credit.&lt;/P&gt;&lt;P class="ng-binding"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="ng-binding"&gt;Any suggestions? Does the transaction need to be 'settled' before you issue a 'refund' on the transaction? If so, how can you cancel a transaction if it has been captured but not settled.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2017 14:08:52 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/AcceptJS-Refund-a-transaction/m-p/57610#M32313</guid>
      <dc:creator>joshyboyrules</dc:creator>
      <dc:date>2017-04-10T14:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: AcceptJS Refund a transaction</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AcceptJS-Refund-a-transaction/m-p/57611#M32314</link>
      <description>&lt;P&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/21512"&gt;@joshyboyrules&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are correct, an unsettled transaction can only be voided which cancels the entire transaction. &amp;nbsp;After it settles, you can issue a refund.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Richard&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2017 14:32:03 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/AcceptJS-Refund-a-transaction/m-p/57611#M32314</guid>
      <dc:creator>RichardH</dc:creator>
      <dc:date>2017-04-10T14:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: AcceptJS Refund a transaction</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AcceptJS-Refund-a-transaction/m-p/57614#M32317</link>
      <description>&lt;P&gt;I figured out that you can void a transaction that has been unsettled transaction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How would you know if a transaction has been settled or not?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2017 15:02:20 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/AcceptJS-Refund-a-transaction/m-p/57614#M32317</guid>
      <dc:creator>joshyboyrules</dc:creator>
      <dc:date>2017-04-10T15:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: AcceptJS Refund a transaction</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AcceptJS-Refund-a-transaction/m-p/57616#M32319</link>
      <description>&lt;P&gt;Thanks for the update. Please see my latest question. Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2017 16:28:07 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/AcceptJS-Refund-a-transaction/m-p/57616#M32319</guid>
      <dc:creator>joshyboyrules</dc:creator>
      <dc:date>2017-04-10T16:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: AcceptJS Refund a transaction</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AcceptJS-Refund-a-transaction/m-p/57619#M32322</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/21512"&gt;@joshyboyrules&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use &lt;A href="https://developer.authorize.net/api/reference/#transaction-reporting-get-transaction-details" target="_self"&gt;getTransactionDetails&lt;/A&gt; using the transaction ID to obtain the settlement state.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Richard&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2017 17:19:45 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/AcceptJS-Refund-a-transaction/m-p/57619#M32322</guid>
      <dc:creator>RichardH</dc:creator>
      <dc:date>2017-04-10T17:19:45Z</dc:date>
    </item>
  </channel>
</rss>

