예제 #1
0
 /**
  * @return array
  */
 public function getBoletoTypes()
 {
     $boletoTypes = $this->_adyenHelper->getBoletoTypes();
     $types = [];
     foreach ($boletoTypes as $boletoType) {
         $types[$boletoType['value']] = $boletoType['label'];
     }
     return $types;
 }
 /**
  * @return array
  */
 public function getConfig()
 {
     // set to active
     return ['payment' => [self::CODE => ['isActive' => true, 'redirectUrl' => $this->_urlBuilder->getUrl('checkout/onepage/success/', ['_secure' => $this->_getRequest()->isSecure()])], 'adyenBoleto' => ['boletoTypes' => $this->_adyenHelper->getBoletoTypes()]]];
 }
예제 #3
0
 /**
  * @return array
  */
 public function toOptionArray()
 {
     return $this->_adyenHelper->getBoletoTypes();
 }