示例#1
0
 /**
  * @return array
  */
 public function toOptionArray()
 {
     $recurringTypes = $this->_adyenHelper->getRecurringTypes();
     $options = [['value' => '', 'label' => __(self::UNDEFINED_OPTION_LABEL)]];
     foreach ($recurringTypes as $code => $label) {
         $options[] = ['value' => $code, 'label' => $label];
     }
     return $options;
 }
 /**
  * @return array
  */
 public function toOptionArray()
 {
     $recurringTypes = $this->_adyenHelper->getRecurringTypes();
     foreach ($recurringTypes as $code => $label) {
         if ($code == \Adyen\Payment\Model\RecurringType::ONECLICK || $code == \Adyen\Payment\Model\RecurringType::RECURRING) {
             $options[] = ['value' => $code, 'label' => $label];
         }
     }
     return $options;
 }