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
*/
protected $taxConfig;
/**
* CheckoutDataBuilder constructor.
*
* @param \Adyen\Payment\Helper\Data $adyenHelper
* @param \Magento\Store\Model\StoreManagerInterface $storeManager
* @param \Magento\Checkout\Model\Session $checkoutSession
......@@ -156,7 +154,7 @@ class CheckoutDataBuilder implements BuilderInterface
$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 = 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