cancel
Showing results for 
Search instead for 
Did you mean: 

updating auth.net error codes

SOLVED

updating auth.net error codes

Could someone tell me where to find/edit the error code text that appear in the pop up window? Eg. Error 11 A duplicate transaction has been submitted. A search of the module code came up empty so wondering if it is coming directly from api response. Thank you

2 ACCEPTED SOLUTIONS

Accepted Solutions

Re: updating auth.net error codes

Hi,

 

Actually that message come from your API response. If you want to change that message then go through below steps:

 

1. Go to /app/code/core/Mage/Paygate/Model/Authorizenet.php

2. Find the method _wrapGatewayError($text)

 

Change the code from :

 

return Mage::helper('paygate')->__('Gateway error: %s', $text);

 

 to 

 

if($text == 'Error 11: A duplicate transaction has been submitted.') {
    $text = 'Custom message here.'
}
return Mage::helper('paygate')->__('Gateway error: %s', $text);

 3. Clear the cache from cache folder : var/cache/

 

If this post fulfill your solution please mark as accept.

 

Thanks,

Dibyajyoti

View solution in original post

Re: updating auth.net error codes

Hi,

 

If my post is help you for your problem solved. It will be grate if you mark as accept... Smiley Happy

 

Regards,

View solution in original post

3 REPLIES 3

Re: updating auth.net error codes

Hi,

 

Actually that message come from your API response. If you want to change that message then go through below steps:

 

1. Go to /app/code/core/Mage/Paygate/Model/Authorizenet.php

2. Find the method _wrapGatewayError($text)

 

Change the code from :

 

return Mage::helper('paygate')->__('Gateway error: %s', $text);

 

 to 

 

if($text == 'Error 11: A duplicate transaction has been submitted.') {
    $text = 'Custom message here.'
}
return Mage::helper('paygate')->__('Gateway error: %s', $text);

 3. Clear the cache from cache folder : var/cache/

 

If this post fulfill your solution please mark as accept.

 

Thanks,

Dibyajyoti

Re: updating auth.net error codes

Thank you Dibyajyoti, my developer is checking.

Re: updating auth.net error codes

Hi,

 

If my post is help you for your problem solved. It will be grate if you mark as accept... Smiley Happy

 

Regards,