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

#59 add missing file

parent 5b4650fb
......@@ -31,4 +31,38 @@ class Boleto extends \Magento\Payment\Block\Form
*/
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