diff --git a/classes/gateway.php b/classes/gateway.php index 0f1b637..8a64d3e 100644 --- a/classes/gateway.php +++ b/classes/gateway.php @@ -52,9 +52,11 @@ public static function add_configuration_to_gateway_form(\core_payment\form\acco $mform->addElement('text', 'shopid', get_string('shopid', 'paygw_yookassa')); $mform->setType('shopid', PARAM_TEXT); + $mform->addRule('shopid', get_string('required'), 'required', null, 'client'); - $mform->addElement('text', 'apikey', get_string('apikey', 'paygw_yookassa'), ['size' => 48]); + $mform->addElement('text', 'apikey', get_string('apikey', 'paygw_yookassa'), ['size' => 50]); $mform->setType('apikey', PARAM_TEXT); + $mform->addRule('apikey', get_string('required'), 'required', null, 'client'); $options = [ 1 => 1,