<?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: Multiple Payments Refund Issue In Authorize .net in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Multiple-Payments-Refund-Issue-In-Authorize-net/m-p/61454#M35899</link>
    <description>&lt;P&gt;Any One have any idea?&lt;/P&gt;</description>
    <pubDate>Thu, 01 Feb 2018 03:07:39 GMT</pubDate>
    <dc:creator>anuj</dc:creator>
    <dc:date>2018-02-01T03:07:39Z</dc:date>
    <item>
      <title>Multiple Payments Refund Issue In Authorize .net</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Multiple-Payments-Refund-Issue-In-Authorize-net/m-p/61340#M35801</link>
      <description>&lt;DIV class="post-text"&gt;&lt;P&gt;In our application users can pay product amount in multiple payments(I am using Authorize.net). Now when I try to refund using our application I got following error message “Refund Failed. A duplicate transaction has been submitted”. Can you please let us know how to handle this situation?&lt;/P&gt;&lt;P&gt;Our Application code is in C# and .Net SDK is used.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Demo Scenario: Total Product Amount: $2000&lt;/P&gt;&lt;P&gt;1st payment paid on 15-December-2017=$500 (Sample Transaction ID from authorize.net: 40009683949)&lt;/P&gt;&lt;P&gt;2nd payment paid on 31-December-2017=$500 (Sample Transaction ID from authorize.net: 40009683950)&lt;/P&gt;&lt;P&gt;3rd payment paid on 10-January-2018=$500 (Sample Transaction ID from authorize.net: 40009683951)&lt;/P&gt;&lt;P&gt;4th payment paid on 15-January-2018=$500 (Sample Transaction ID from authorize.net: 40009683952)&lt;/P&gt;&lt;P&gt;While initiating refund process I have created loop and passing “Transaction Id”(different at each request) and “Amount”. First Transactions refunds successfully but other gives me “Refund Failed. A duplicate transaction has been submitted” error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have found an article on authorize.net for this issue: &lt;A href="https://support.authorize.net/authkb/index?page=content&amp;amp;id=A425&amp;amp;actp=search&amp;amp;viewlocale=en_US&amp;amp;searchid=1516718864834" target="_blank" rel="nofollow noreferrer"&gt;https://support.authorize.net/authkb/index?page=content&amp;amp;id=A425&amp;amp;actp=search&amp;amp;viewlocale=en_US&amp;amp;searchid=1516718864834&lt;/A&gt;&lt;/P&gt;&lt;P&gt;According to this article I have to send extra parameter: "x_duplicate_window" with the request. I have tried but my code is not working(There is no sample code available in authorize .net)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my Code:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="kwd"&gt;var&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; x_duplicate_window_Setting &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt; &lt;SPAN class="kwd"&gt;new&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; settingType &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;{&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; settingName &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt; &lt;SPAN class="str"&gt;"x_duplicate_window"&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; settingValue &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt; &lt;SPAN class="str"&gt;"-1"&lt;/SPAN&gt; &lt;SPAN class="pun"&gt;};&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;        settingType&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;[]&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; extraOptions &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt; &lt;SPAN class="pun"&gt;{&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; x_duplicate_window_Setting &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;};&lt;/SPAN&gt;

        &lt;SPAN class="kwd"&gt;var&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; transactionRequest &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt; &lt;SPAN class="kwd"&gt;new&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; transactionRequestType
        &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;{&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;   transactionType &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; transactionTypeEnum&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;refundTransaction&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ"&gt;ToString&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(),&lt;/SPAN&gt;    &lt;BR /&gt;&lt;SPAN class="com"&gt;            // refund type&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;            payment &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; paymentType&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;            amount &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt; &lt;SPAN class="typ"&gt;TransactionAmount&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;           &lt;BR /&gt;            refTransId &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt; &lt;SPAN class="typ"&gt;TransactionID&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;            &lt;BR /&gt;            transactionSettings &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; extraOptions
        &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;};&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Error Message: Refund Failed. Setting Name 'x_duplicate_window' is invalid for this method.&lt;/P&gt;&lt;P&gt;Anyone know how to solve this issue??&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 Jan 2018 16:39:14 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Multiple-Payments-Refund-Issue-In-Authorize-net/m-p/61340#M35801</guid>
      <dc:creator>anuj</dc:creator>
      <dc:date>2018-01-24T16:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Payments Refund Issue In Authorize .net</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Multiple-Payments-Refund-Issue-In-Authorize-net/m-p/61368#M35826</link>
      <description>&lt;P&gt;x_duplicate_window is the field name if you are using the AIM api.&lt;/P&gt;&lt;P&gt;Since you are using the .NET sdk that uses&amp;nbsp;the XML based api&amp;nbsp;the format is different.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The field is called duplicateWindow and it is in the transactionSettings node. Use 0 instead of -1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;transactionSettings&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;setting&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;settingName&amp;gt;duplicateWindow&amp;lt;/settingName&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;settingValue&amp;gt;0&amp;lt;/settingValue&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/setting&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/transactionSettings&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the &amp;nbsp;documentation on the transaction settings:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.authorize.net/api/reference/features/payment_transactions.html#Transaction_Settings" target="_blank"&gt;https://developer.authorize.net/api/reference/features/payment_transactions.html#Transaction_Settings&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The developer reference guide:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.authorize.net/api/reference/#payment-transactions" target="_blank"&gt;https://developer.authorize.net/api/reference/#payment-transactions&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2018 18:11:24 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Multiple-Payments-Refund-Issue-In-Authorize-net/m-p/61368#M35826</guid>
      <dc:creator>mmcguire</dc:creator>
      <dc:date>2018-01-25T18:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Payments Refund Issue In Authorize .net</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Multiple-Payments-Refund-Issue-In-Authorize-net/m-p/61420#M35870</link>
      <description>&lt;P&gt;Can you please tell me how to use this in my code. Where to write this code?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using SDK.. I have not found any options.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2018 08:34:04 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Multiple-Payments-Refund-Issue-In-Authorize-net/m-p/61420#M35870</guid>
      <dc:creator>anuj</dc:creator>
      <dc:date>2018-01-30T08:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Payments Refund Issue In Authorize .net</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Multiple-Payments-Refund-Issue-In-Authorize-net/m-p/61454#M35899</link>
      <description>&lt;P&gt;Any One have any idea?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 03:07:39 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Multiple-Payments-Refund-Issue-In-Authorize-net/m-p/61454#M35899</guid>
      <dc:creator>anuj</dc:creator>
      <dc:date>2018-02-01T03:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Payments Refund Issue In Authorize .net</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Multiple-Payments-Refund-Issue-In-Authorize-net/m-p/66781#M40287</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is an old question, but it comes up in google as an answer so I figured I'd supply one. I found this answer here&lt;BR /&gt;&lt;A href="https://community.developer.authorize.net/t5/Integration-and-Testing/C-add-settingType-to-transactionRequest/td-p/65338" target="_blank" rel="noopener"&gt;https://community.developer.authorize.net/t5/Integration-and-Testing/C-add-settingType-to-transactionRequest/td-p/65338&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps someone.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;var settings = new settingType[] { 
           new settingType
           {
               settingName = settingNameEnum.duplicateWindow.ToString(),
               settingValue = "0"
           } 
};
var transactionRequest = new transactionRequestType {
           transactionType = transactionTypeEnum.authCaptureTransaction.ToString(),    // charge the card
           amount = amount,
           payment = paymentType,
           billTo = billingAddress,
           lineItems = lineItems,
           transactionSettings=settings};&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 16:03:16 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Multiple-Payments-Refund-Issue-In-Authorize-net/m-p/66781#M40287</guid>
      <dc:creator>myoung_DB</dc:creator>
      <dc:date>2019-03-06T16:03:16Z</dc:date>
    </item>
  </channel>
</rss>

