diff --git a/classes/gateway.php b/classes/gateway.php index 24b142a..8c3017e 100644 --- a/classes/gateway.php +++ b/classes/gateway.php @@ -236,9 +236,11 @@ public static function add_configuration_to_gateway_form(\core_payment\form\acco $mform->addElement('text', 'suggest', get_string('suggest', 'paygw_yookassa'), ['size' => 10]); $mform->setType('suggest', PARAM_TEXT); + $mform->disabledIf('suggest', 'fixcost', "neq", 0); $mform->addElement('text', 'maxcost', get_string('maxcost', 'paygw_yookassa'), ['size' => 10]); $mform->setType('maxcost', PARAM_TEXT); + $mform->disabledIf('maxcost', 'fixcost', "neq", 0); global $CFG; $mform->addElement('html', '
' . diff --git a/lang/en/paygw_yookassa.php b/lang/en/paygw_yookassa.php index 1a177cf..cff2393 100644 --- a/lang/en/paygw_yookassa.php +++ b/lang/en/paygw_yookassa.php @@ -23,7 +23,7 @@ */ $string['abouttopay'] = 'You are about to pay for'; $string['apikey'] = 'API Key'; -$string['callback_help'] = 'Copy this line and paste it into "HTTP notifications" in the YooKassa store settings, and enable "payment.succeeded" notifications there.'; +$string['callback_help'] = 'Copy this line and paste it into "HTTP notifications" in the YooKassa store settings, and enable "payment.succeeded" and "payment.canceled" notifications there.'; $string['callback_url'] = 'Notification URL:'; $string['fixdesc'] = 'Fixed payment comment'; $string['fixdesc_help'] = 'This setting sets a fixed comment for all payments.'; diff --git a/version.php b/version.php index 7b3eba9..798578a 100644 --- a/version.php +++ b/version.php @@ -24,7 +24,7 @@ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 2024071900; +$plugin->version = 2024071901; $plugin->requires = 2023100900; $plugin->component = 'paygw_yookassa'; $plugin->release = '2.2';