Step 1: When customer enter all information of checkout, to include CVV and submit the order. If the CVV is incorrect so authorize.net display message related to invalid CVV. After that customer corrects the CVV and resubmits, Authorize.net then responds with “A duplicate transaction has been submitted.” message.
Step 2: Authorize.net Support to add the ‘x_duplicate_window’ variable to my scripting so it gets passed to them. To set ‘x_duplicate_window’ variable follow the steps.
Step 3: first copy /app/code/core/Mage/Paygate/Model/Authorizenet.php
File to /app/code/local/Mage/Paygate/Model/Authorizenet.php
so your fix is not removed by an upgrade
Step 4: find the
_postRequest function (line 360 on my magento version).
add the following snippet just inside the function:
</code> <code>// Set duplicate charge window</code> <code>$request</code><code>-></code><code>setXDuplicateWindow</code><code>(</code><code>2</code><code>);</code>
The number passed in is a value in seconds. That’s saying “It’s only a duplicate if you see two requests within 2 seconds”.
Hope this will help you.