/** * For admin use RECURRING contract for front-end get it from configuration * * @return mixed|string * @throws \Magento\Framework\Exception\LocalizedException */ public function getRecurringPaymentType() { // For admin always use Recurring if ($this->appState->getAreaCode() === \Magento\Backend\App\Area\FrontNameResolver::AREA_CODE) { return \Adyen\Payment\Model\RecurringType::RECURRING; } else { return $this->adyenHelper->getAdyenOneclickConfigData('recurring_payment_type'); } }
/** * @return mixed */ protected function _getRecurringContractType() { return $this->_adyenHelper->getAdyenOneclickConfigData('recurring_payment_type'); }