We will work on Apr 26th (Saturday) and will be off from Apr 30th (Wednesday) until May 2nd (Friday) for public holiday in our country

Commit a208542b authored by attilak's avatar attilak

Remove debug logs

parent 7b5514fb
...@@ -337,7 +337,6 @@ class Redirect extends \Magento\Payment\Block\Form ...@@ -337,7 +337,6 @@ class Redirect extends \Magento\Payment\Block\Form
$formFields['shopper.telephoneNumber'] = trim($billingAddress->getTelephone()); $formFields['shopper.telephoneNumber'] = trim($billingAddress->getTelephone());
if ($this->_adyenHelper->isSeparateHouseNumberRequired($billingAddress->getCountryId())) { if ($this->_adyenHelper->isSeparateHouseNumberRequired($billingAddress->getCountryId())) {
$this->_adyenLogger->addAdyenDebug("separate house number required");
$street = $this->_adyenHelper->getStreet($billingAddress); $street = $this->_adyenHelper->getStreet($billingAddress);
if (isset($street['name']) && $street['name'] != "") { if (isset($street['name']) && $street['name'] != "") {
...@@ -350,7 +349,6 @@ class Redirect extends \Magento\Payment\Block\Form ...@@ -350,7 +349,6 @@ class Redirect extends \Magento\Payment\Block\Form
$formFields['billingAddress.houseNumberOrName'] = "NA"; $formFields['billingAddress.houseNumberOrName'] = "NA";
} }
} else { } else {
$this->_adyenLogger->addAdyenDebug("separate house number NOT required");
$formFields['billingAddress.street'] = implode(" ", $billingAddress->getStreet()); $formFields['billingAddress.street'] = implode(" ", $billingAddress->getStreet());
} }
...@@ -389,10 +387,9 @@ class Redirect extends \Magento\Payment\Block\Form ...@@ -389,10 +387,9 @@ class Redirect extends \Magento\Payment\Block\Form
protected function setShippingAddressData($formFields) protected function setShippingAddressData($formFields)
{ {
$shippingAddress = $this->_order->getShippingAddress(); $shippingAddress = $this->_order->getShippingAddress();
$this->_adyenLogger->addAdyenDebug($shippingAddress->getCountryId());
if ($shippingAddress) { if ($shippingAddress) {
if ($this->_adyenHelper->isSeparateHouseNumberRequired($shippingAddress->getCountryId())) { if ($this->_adyenHelper->isSeparateHouseNumberRequired($shippingAddress->getCountryId())) {
$this->_adyenLogger->addAdyenDebug("separate house number required");
$street = $this->_adyenHelper->getStreet($shippingAddress); $street = $this->_adyenHelper->getStreet($shippingAddress);
if (isset($street['name']) && $street['name'] != "") { if (isset($street['name']) && $street['name'] != "") {
...@@ -405,7 +402,6 @@ class Redirect extends \Magento\Payment\Block\Form ...@@ -405,7 +402,6 @@ class Redirect extends \Magento\Payment\Block\Form
$formFields['deliveryAddress.houseNumberOrName'] = "NA"; $formFields['deliveryAddress.houseNumberOrName'] = "NA";
} }
} else { } else {
$this->_adyenLogger->addAdyenDebug("separate house number NOT required");
$formFields['deliveryAddress.street'] = implode(" ", $shippingAddress->getStreet()); $formFields['deliveryAddress.street'] = implode(" ", $shippingAddress->getStreet());
} }
......
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