From c6b7662e35f775f3f3e4baad59721b0538601471 Mon Sep 17 00:00:00 2001 From: jakubpolomsky Date: Wed, 24 May 2017 10:12:00 +0200 Subject: [PATCH] #29 set NO_SHIPPING for masterpass --- Model/AbstractPayment.php | 4 ++-- etc/adminhtml/system.xml | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Model/AbstractPayment.php b/Model/AbstractPayment.php index f9ad2e4..332d53f 100644 --- a/Model/AbstractPayment.php +++ b/Model/AbstractPayment.php @@ -162,8 +162,8 @@ public function initPaymentByCart(CheckoutCart $cart, $urls, \Magento\Framework\ ->setConsumerData($this->_getConsumerData($quote)) ->setMaxRetries($this->_dataHelper->getConfigData('options/maxretries')); - if ($this->_paymentMethod == \WirecardCEE_QMore_PaymentType::MASTERPASS && strlen($this->getConfigData('shipping_profile'))) { - $init->setShippingProfile($this->getConfigData('shipping_profile')); + if ($this->_paymentMethod == \WirecardCEE_QMore_PaymentType::MASTERPASS) { + $init->setShippingProfile('NO_SHIPPING'); } $init->mage_orderId = $orderId; diff --git a/etc/adminhtml/system.xml b/etc/adminhtml/system.xml index 1bf4fe0..958c414 100644 --- a/etc/adminhtml/system.xml +++ b/etc/adminhtml/system.xml @@ -320,9 +320,6 @@ - - - Magento\Shipping\Model\Config\Source\Allmethods