Skip to content

Commit

Permalink
Merge pull request #58 from Snickser/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
Snickser authored Jul 21, 2024
2 parents 51b6b39 + 6ff3ab2 commit fd0fe81
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions classes/gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -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', '<div class="label-callback" style="background: pink; padding: 15px;">' .
Expand Down
2 changes: 1 addition & 1 deletion lang/en/paygw_yookassa.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.';
Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit fd0fe81

Please sign in to comment.