Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
Snickser committed Sep 4, 2024
1 parent cbf11a3 commit dd86291
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions classes/gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public static function add_configuration_to_gateway_form(\core_payment\form\acco
$mform->setType('mntid', PARAM_TEXT);
$mform->addRule('mntid', get_string('required'), 'required', null, 'client');

$mform->addElement('text', 'mntdataintegritycode', get_string('mntdataintegritycode', 'paygw_payanyway'));
$mform->addElement('passwordunmask', 'mntdataintegritycode', get_string('mntdataintegritycode', 'paygw_payanyway'));
$mform->setType('mntdataintegritycode', PARAM_TEXT);
$mform->addRule('mntdataintegritycode', get_string('required'), 'required', null, 'client');

Expand Down Expand Up @@ -87,16 +87,13 @@ public static function add_configuration_to_gateway_form(\core_payment\form\acco
$mform->setType('passwordmode', PARAM_TEXT);
$mform->disabledIf('passwordmode', 'skipmode', "neq", 0);

$mform->addElement('text', 'password', get_string('password', 'paygw_payanyway'));
$mform->addElement('passwordunmask', 'password', get_string('password', 'paygw_payanyway'));
$mform->setType('password', PARAM_TEXT);
$mform->disabledIf('password', 'passwordmode');
$mform->disabledIf('password', 'skipmode', "neq", 0);
$mform->addHelpButton('password', 'password', 'paygw_payanyway');

$mform->addElement(
'advcheckbox',
'usedetails',
get_string('usedetails', 'paygw_payanyway'),
get_string('usedetails', 'paygw_payanyway')
);
$mform->setType('usedetails', PARAM_INT);
Expand All @@ -105,15 +102,13 @@ public static function add_configuration_to_gateway_form(\core_payment\form\acco
$mform->addElement(
'advcheckbox',
'showduration',
get_string('showduration', 'paygw_payanyway'),
get_string('showduration', 'paygw_payanyway')
);
$mform->setType('showduration', PARAM_INT);

$mform->addElement(
'advcheckbox',
'fixcost',
get_string('fixcost', 'paygw_payanyway'),
get_string('fixcost', 'paygw_payanyway')
);
$mform->setType('fixcost', PARAM_INT);
Expand Down

0 comments on commit dd86291

Please sign in to comment.