[英]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.