diff --git a/README.md b/README.md index 8adc000..67246ad 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,11 @@ -[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://paypal.me/snickser) support me with a donation. - ## CryptoCloud payment gateway plugin for Moodle. -v0.12 - -https://cryptocloud.plus/ +[![](https://img.shields.io/github/v/release/Snickser/moodle-paygw_cryptocloud.svg)](https://github.com/Snickser/moodle-paygw_cryptocloud/releases) +[![Build Status](https://github.com/Snickser/moodle-paygw_cryptocloud/actions/workflows/moodle-ci.yml/badge.svg)](https://github.com/Snickser/moodle-paygw_cryptocloud/actions/workflows/moodle-ci.yml) ![img](https://raw.githubusercontent.com/Snickser/moodle-paygw_cryptocloud/d48eb290dee4d843ba8e0c07911b64ead7db8bb7/pix/img.svg) -## Status - -[![Build Status](https://github.com/Snickser/moodle-paygw_cryptocloud/actions/workflows/moodle-ci.yml/badge.svg)](https://github.com/Snickser/moodle-paygw_cryptocloud/actions/workflows/moodle-ci.yml) +https://cryptocloud.plus/ ## Recommendations diff --git a/classes/gateway.php b/classes/gateway.php index 1c606c8..bc259e6 100644 --- a/classes/gateway.php +++ b/classes/gateway.php @@ -55,11 +55,11 @@ public static function add_configuration_to_gateway_form(\core_payment\form\acco $mform->setType('shopid', PARAM_TEXT); $mform->addRule('shopid', get_string('required'), 'required', null, 'client'); - $mform->addElement('text', 'apikey', get_string('apikey', 'paygw_cryptocloud'), ['size' => 50]); + $mform->addElement('text', 'apikey', get_string('apikey', 'paygw_cryptocloud'), ['size' => 30]); $mform->setType('apikey', PARAM_TEXT); $mform->addRule('apikey', get_string('required'), 'required', null, 'client'); - $mform->addElement('text', 'secretkey', get_string('secretkey', 'paygw_cryptocloud'), ['size' => 50]); + $mform->addElement('text', 'secretkey', get_string('secretkey', 'paygw_cryptocloud'), ['size' => 30]); $mform->setType('secretkey', PARAM_TEXT); $mform->addRule('secretkey', get_string('required'), 'required', null, 'client'); @@ -89,7 +89,6 @@ public static function add_configuration_to_gateway_form(\core_payment\form\acco $mform->addElement( 'advcheckbox', 'skipmode', - get_string('skipmode', 'paygw_cryptocloud'), get_string('skipmode', 'paygw_cryptocloud') ); $mform->setType('skipmode', PARAM_INT); @@ -98,7 +97,6 @@ public static function add_configuration_to_gateway_form(\core_payment\form\acco $mform->addElement( 'advcheckbox', 'passwordmode', - get_string('passwordmode', 'paygw_cryptocloud'), get_string('passwordmode', 'paygw_cryptocloud') ); $mform->setType('passwordmode', PARAM_INT); @@ -113,7 +111,6 @@ public static function add_configuration_to_gateway_form(\core_payment\form\acco $mform->addElement( 'advcheckbox', 'usedetails', - get_string('usedetails', 'paygw_cryptocloud'), get_string('usedetails', 'paygw_cryptocloud') ); $mform->setType('usedetails', PARAM_INT); @@ -122,7 +119,6 @@ public static function add_configuration_to_gateway_form(\core_payment\form\acco $mform->addElement( 'advcheckbox', 'showduration', - get_string('showduration', 'paygw_cryptocloud'), get_string('showduration', 'paygw_cryptocloud') ); $mform->setType('showduration', PARAM_INT); @@ -130,7 +126,6 @@ public static function add_configuration_to_gateway_form(\core_payment\form\acco $mform->addElement( 'advcheckbox', 'fixcost', - get_string('fixcost', 'paygw_cryptocloud'), get_string('fixcost', 'paygw_cryptocloud') ); $mform->setType('fixcost', PARAM_INT); @@ -152,8 +147,10 @@ public static function add_configuration_to_gateway_form(\core_payment\form\acco $mform->addElement('html', $CFG->wwwroot . '/payment/gateway/cryptocloud/return.php
'); $mform->addElement('html', get_string('callback_help', 'paygw_cryptocloud') . '
'); - $header = '
Новые версии плагина вы можете найти на - GitHub.com
+ $plugininfo = \core_plugin_manager::instance()->get_plugin_info('paygw_cryptocloud'); + $header = "
Версия плагина: $plugininfo->release ($plugininfo->versiondisk)
" . + 'Новые версии плагина вы можете найти на GitHub.com +
Пожалуйста, отправьте мне немножко доната😊
'; diff --git a/version.php b/version.php index 1a8d06f..4af4724 100644 --- a/version.php +++ b/version.php @@ -24,8 +24,8 @@ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 2024072101; +$plugin->version = 2024090500; $plugin->requires = 2023100900; $plugin->component = 'paygw_cryptocloud'; -$plugin->release = '0.12'; +$plugin->release = '0.13'; $plugin->maturity = MATURITY_STABLE;