To solve Magento Duplicate Transaction / CVV?

Step 1: When customer enter all information of checkout, to include CVV and submit the order. If the CVV is incorrect  so display message related to invalid CVV. After that customer corrects the CVV and resubmits, then responds with “A duplicate transaction has been submitted.” message.

Step 2: 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>// Set duplicate charge window</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.

Speak Your Mind

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: