- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
If my post is help you for your problem solved. It will be grate if you mark as accept...
Regards,
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: updating auth.net error codes
Thank you Dibyajyoti, my developer is checking.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content