【问题标题】:Block Adyen status in magento在magento中阻止Adyen状态
【发布时间】: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


【解决方案1】:

我为解决这个问题所做的代码如下:

$eventCode = trim($params->getData('eventCode'));
if ($eventCode == Adyen_Payment_Model_Event::ADYEN_EVENT_AUTHORISATION){
    $payment = $params->getData('paymentMethod');
    if($payment == "boletobancario_santander") {
        $this->_debugData['processResponse info'] = 'Skip notification REPORT_AVAILABLE';
        $this->_debug($storeId);
        return;
    }
}

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-04-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-11-01
    • 2013-11-20
    相关资源
    最近更新 更多