Commit 5c2acdd7 by lmf

更新klarna插件

parent 25b9d1ef
...@@ -68,17 +68,7 @@ class Redirect extends \Magento\Framework\View\Element\Template ...@@ -68,17 +68,7 @@ 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');
} }
......
...@@ -155,7 +155,7 @@ class PaymentMethod extends AbstractMethod ...@@ -155,7 +155,7 @@ class PaymentMethod extends AbstractMethod
//securecode //securecode
$securecode = $validate_arr['securecode']; $securecode = $validate_arr['securecode'];
//支付方式 //支付方式
// $methods = 'Klarna'; $methods = 'Klarna';
//订单号 //订单号
$order_number = $orderIncrementId; $order_number = $orderIncrementId;
//返回地址 //返回地址
...@@ -285,7 +285,7 @@ class PaymentMethod extends AbstractMethod ...@@ -285,7 +285,7 @@ class PaymentMethod extends AbstractMethod
'noticeUrl'=>$noticeUrl, 'noticeUrl'=>$noticeUrl,
'order_notes'=>$order_notes, 'order_notes'=>$order_notes,
'itemList'=>$itemList, 'itemList'=>$itemList,
// 'methods'=>$methods, 'methods'=>$methods,
'signValue'=>$signValue, 'signValue'=>$signValue,
'billing_firstName'=>$billing_firstName, 'billing_firstName'=>$billing_firstName,
'billing_lastName'=>$billing_lastName, 'billing_lastName'=>$billing_lastName,
......
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