We will be off from 27/1 (Monday) to 31/1 (Friday) (GMT +7) for our Tet Holiday (Lunar New Year) in our country

Commit bbf35266 authored by Rik ter Beek's avatar Rik ter Beek

minor fixes

parent 863c0bb4
...@@ -25,7 +25,6 @@ namespace Adyen\Payment\Model; ...@@ -25,7 +25,6 @@ namespace Adyen\Payment\Model;
use Magento\Checkout\Model\ConfigProviderInterface; use Magento\Checkout\Model\ConfigProviderInterface;
use Magento\Payment\Helper\Data as PaymentHelper; use Magento\Payment\Helper\Data as PaymentHelper;
use Magento\Directory\Helper\Data;
class AdyenSepaConfigProvider implements ConfigProviderInterface class AdyenSepaConfigProvider implements ConfigProviderInterface
{ {
......
...@@ -347,6 +347,11 @@ class Cc extends \Magento\Payment\Model\Method\Cc ...@@ -347,6 +347,11 @@ class Cc extends \Magento\Payment\Model\Method\Cc
throw new \Magento\Framework\Exception\LocalizedException(__($errorMsg)); throw new \Magento\Framework\Exception\LocalizedException(__($errorMsg));
} }
break; break;
default:
$errorMsg = __('Error with payment method please select different payment method.');
$this->_logger->critical($errorMsg);
throw new \Magento\Framework\Exception\LocalizedException(__($errorMsg));
break;
} }
} }
......
...@@ -263,7 +263,7 @@ class Sepa extends \Magento\Payment\Model\Method\AbstractMethod ...@@ -263,7 +263,7 @@ class Sepa extends \Magento\Payment\Model\Method\AbstractMethod
$payment->setLastTransId($this->getTransactionId())->setIsTransactionPending(true); $payment->setLastTransId($this->getTransactionId())->setIsTransactionPending(true);
// DO authorisation // DO authorisation
$this->_processRequest($payment, $amount, "authorise"); $this->_processRequest($payment, "authorise");
return $this; return $this;
} }
...@@ -274,7 +274,7 @@ class Sepa extends \Magento\Payment\Model\Method\AbstractMethod ...@@ -274,7 +274,7 @@ class Sepa extends \Magento\Payment\Model\Method\AbstractMethod
* @param $request * @param $request
* @throws \Magento\Framework\Exception\LocalizedException * @throws \Magento\Framework\Exception\LocalizedException
*/ */
protected function _processRequest(\Magento\Sales\Model\Order\Payment $payment, $amount, $request) protected function _processRequest(\Magento\Sales\Model\Order\Payment $payment, $request)
{ {
switch ($request) { switch ($request) {
case "authorise": case "authorise":
...@@ -308,6 +308,11 @@ class Sepa extends \Magento\Payment\Model\Method\AbstractMethod ...@@ -308,6 +308,11 @@ class Sepa extends \Magento\Payment\Model\Method\AbstractMethod
$this->_logger->critical($errorMsg); $this->_logger->critical($errorMsg);
throw new \Magento\Framework\Exception\LocalizedException(__($errorMsg)); throw new \Magento\Framework\Exception\LocalizedException(__($errorMsg));
break; break;
default:
$errorMsg = __('Error with payment method please select different payment method.');
$this->_logger->critical($errorMsg);
throw new \Magento\Framework\Exception\LocalizedException(__($errorMsg));
break;
} }
} }
......
...@@ -99,7 +99,6 @@ ...@@ -99,7 +99,6 @@
</div> </div>
<div class="field country type required"> <div class="field country type required">
<label data-bind="attr: {for: getCode() + '_country'}" class="label"> <label data-bind="attr: {for: getCode() + '_country'}" class="label">
<span><!-- ko text: $t('Country')--><!-- /ko --></span> <span><!-- ko text: $t('Country')--><!-- /ko --></span>
</label> </label>
...@@ -116,7 +115,6 @@ ...@@ -116,7 +115,6 @@
data-validate="{required:true}"> data-validate="{required:true}">
</select> </select>
</div> </div>
</div> </div>
<div class="field choice required"> <div class="field choice required">
......
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