/** * @return array */ public function toOptionArray() { $recurringTypes = $this->_adyenHelper->getPaymentRoutines(); foreach ($recurringTypes as $code => $label) { $options[] = ['value' => $code, 'label' => $label]; } return $options; }