Commit cae15f7d by lmf

更新klarna插件

parent 5e8548c7
...@@ -69,7 +69,16 @@ class Redirect extends \Magento\Framework\View\Element\Template ...@@ -69,7 +69,16 @@ class Redirect extends \Magento\Framework\View\Element\Template
public function getPayMode(){ public function getPayMode(){
return $this->_paymentMethod->getConfigData('pay_mode'); $parameter = $this->_paymentMethod->getCheckoutParameter();
$billing_country = $parameter['billing_country'];
$pay_mode = $this->_paymentMethod->getConfigData('pay_mode');
if($pay_mode == 'redirect' || in_array($billing_country,array('BE','FR','IT','ES','CH'))){
return 'redirect';
}else{
return 'iframe';
}
// return $this->_paymentMethod->getConfigData('pay_mode');
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment