15 use \PKP\components\forms\FormComponent;
16 use \PKP\components\forms\FieldOptions;
17 use \PKP\components\forms\FieldSelect;
19 define(
'FORM_PAYMENT_SETTINGS',
'paymentSettings');
40 $isoCodes = new \Sokil\IsoCodes\IsoCodesFactory();
41 foreach ($isoCodes->getCurrencies() as $currency) {
43 'value' => $currency->getLetterCode(),
44 'label' => $currency->getLocalName(),
50 $pluginList = array();
51 foreach ($paymentPlugins as $plugin) {
53 'value' => $plugin->getName(),
54 'label' => $plugin->getDisplayName(),
60 'label' => __(
'navigation.setup'),
63 'label' => __(
'common.enable'),
65 [
'value' =>
true,
'label' => __(
'manager.payment.options.enablePayments')]
67 'value' => (
bool) $context->getData(
'paymentsEnabled'),
71 'label' => __(
'manager.paymentMethod.currency'),
72 'options' => $currencies,
73 'showWhen' =>
'paymentsEnabled',
74 'value' => $context->getData(
'currency'),
78 'label' => __(
'plugins.categories.paymethod'),
79 'options' => $pluginList,
80 'showWhen' =>
'paymentsEnabled',
81 'value' => $context->getData(
'paymentPluginName'),