Skip to content

Commit

Permalink
#29 set NO_SHIPPING for masterpass
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubpolomsky committed May 24, 2017
1 parent d4f88cb commit c6b7662
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Model/AbstractPayment.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 0 additions & 3 deletions etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -320,9 +320,6 @@
<field id="title" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Title</label>
</field>
<field id="shipping_profile" translate="label" type="text" sortOrder="15" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Shipping profile</label>
</field>
<field id="allowed_carrier" translate="label" type="multiselect" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="0">
<label>Available shipping methods</label>
<source_model>Magento\Shipping\Model\Config\Source\Allmethods</source_model>
Expand Down

0 comments on commit c6b7662

Please sign in to comment.