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 1d08c3c1 authored by alexandros's avatar alexandros Committed by attilak

Remove unused boleto methods and fix for single configured value

parent e07ffe3d
...@@ -54,10 +54,8 @@ class CheckoutDataBuilder implements BuilderInterface ...@@ -54,10 +54,8 @@ class CheckoutDataBuilder implements BuilderInterface
*/ */
protected $taxConfig; protected $taxConfig;
/** /**
* CheckoutDataBuilder constructor. * CheckoutDataBuilder constructor.
*
* @param \Adyen\Payment\Helper\Data $adyenHelper * @param \Adyen\Payment\Helper\Data $adyenHelper
* @param \Magento\Store\Model\StoreManagerInterface $storeManager * @param \Magento\Store\Model\StoreManagerInterface $storeManager
* @param \Magento\Checkout\Model\Session $checkoutSession * @param \Magento\Checkout\Model\Session $checkoutSession
...@@ -156,7 +154,7 @@ class CheckoutDataBuilder implements BuilderInterface ...@@ -156,7 +154,7 @@ class CheckoutDataBuilder implements BuilderInterface
$request['shopperName']['lastName'] = $payment->getAdditionalInformation("lastName"); $request['shopperName']['lastName'] = $payment->getAdditionalInformation("lastName");
} }
if ($payment->getAdditionalInformation(AdyenBoletoDataAssignObserver::BOLETO_TYPE)) { if ($payment->getMethod() == \Adyen\Payment\Model\Ui\AdyenBoletoConfigProvider::CODE) {
$boletoTypes = $this->adyenHelper->getAdyenBoletoConfigData('boletotypes'); $boletoTypes = $this->adyenHelper->getAdyenBoletoConfigData('boletotypes');
$boletoTypes = explode(',', $boletoTypes); $boletoTypes = explode(',', $boletoTypes);
......
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