【发布时间】:2018-03-09 17:29:47
【问题描述】:
在 adyen no magento 模块中,我想阻止任何通过银行单据发出的通知。来自以下路径的 ProcessNotification.php 文件:app/code/community/Adyen/Payment/Model 负责处理来自 Adyen 服务器的任何通知,并且通过以下代码,我可以阻止所有通知,无论采用何种付款方式。
代码:
$eventCode = trim($params->getData('eventCode'));
if ($eventCode == Adyen_Payment_Model_Event:: AUTHORISATION) {
$this->_debugData['processResponse info'] = 'Skip notification REPORT_AVAILABLE';
$this->_debug($storeId);
return;
}
使用以下代码,在付款确认事件中,我阻止了所有通知,但它最终包括从信用卡购物的通知,我只想阻止来自银行单据的通知。
【问题讨论】:
-
您是否要阻止特定付款方式的通知?
-
是的,以防是银行单据法。
标签: magento magento-1.9 payment adyen