![](/img/trans.png)
[英]Magento 1.8 CE Paypal Payments Pro error messages: edit customer error messages
[英]How to edit Paypal API error messages?
在Magento中,当出现Paypal交易错误时,它会输出如下消息:
此事务无法处理(#15005:处理器拒绝)
由于该消息不是源自Magento,因此无法通过translate.csv更新。
开发人员可以使用哪些选项来使这些消息更加用户友好?
这并非易事,但我认为这是可行的。
我的猜测是重写方法
_processPaypalApiError($exception)
在Mage_Paypal_Controller_Express_Abstract
。
由于它在抽象类中,因此您将不得不重写其中一种方法(例如Express)。
还要看看_setApiProcessableErrors
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.