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 e262e563 authored by Rik ter Beek's avatar Rik ter Beek

#59 add missing file

parent 5b4650fb
...@@ -30,5 +30,39 @@ class Boleto extends \Magento\Payment\Block\Form ...@@ -30,5 +30,39 @@ class Boleto extends \Magento\Payment\Block\Form
* @var string * @var string
*/ */
protected $_template = 'Adyen_Payment::form/boleto.phtml'; protected $_template = 'Adyen_Payment::form/boleto.phtml';
/**
* @var \Adyen\Payment\Helper\Data
*/
protected $_adyenHelper;
/**
* Boleto constructor.
*
* @param \Magento\Framework\View\Element\Template\Context $context
* @param \Adyen\Payment\Helper\Data $adyenHelper
* @param array $data
*/
public function __construct(
\Magento\Framework\View\Element\Template\Context $context,
\Adyen\Payment\Helper\Data $adyenHelper,
array $data = []
) {
parent::__construct($context, $data);
$this->_adyenHelper = $adyenHelper;
}
/**
* @return array
*/
public function getBoletoTypes()
{
$boletoTypes = $this->_adyenHelper->getBoletoTypes();
$types = [];
foreach ($boletoTypes as $boletoType) {
$types[$boletoType['value']] = $boletoType['label'];
}
return $types;
}
} }
\ No newline at end of file
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