Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #46

Merged
merged 6 commits into from
Sep 4, 2024
Merged

Dev #46

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
# PayAnyWay payment gateway plugin for Moodle.

Version 0.13

https://payanyway.ru
[![](https://img.shields.io/github/v/release/Snickser/moodle-paygw_payanyway.svg)](https://github.com/Snickser/moodle-paygw_payanyway/releases)
[![Build Status](https://github.com/Snickser/moodle-paygw_payanyway/actions/workflows/moodle-ci.yml/badge.svg)](https://github.com/Snickser/moodle-paygw_payanyway/actions/workflows/moodle-ci.yml)

![alt text](https://github.com/Snickser/moodle-paygw_payanyway/blob/main/payanyway.png?raw=true)

## Status

[![Build Status](https://github.com/Snickser/moodle-paygw_payanyway/actions/workflows/moodle-ci.yml/badge.svg)](https://github.com/Snickser/moodle-paygw_payanyway/actions/workflows/moodle-ci.yml)
https://payanyway.ru

## Возможности

Expand Down
12 changes: 4 additions & 8 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 All @@ -134,7 +129,8 @@ public static function add_configuration_to_gateway_form(\core_payment\form\acco
$mform->addElement('html', get_string('callback_help', 'paygw_payanyway') . '</div><br>');

$header = '<div>Новые версии плагина вы можете найти на
<a href=https://github.com/Snickser/moodle-paygw_yookassa>GitHub.com</a><br>
<a href=https://github.com/Snickser/moodle-paygw_payanyway>GitHub.com</a>
<img src="https://img.shields.io/github/v/release/Snickser/moodle-paygw_payanyway.svg"><br>
Пожалуйста, отправьте мне немножко <a href="https://yoomoney.ru/fundraise/143H2JO3LLE.240720">доната</a>😊</div>
<iframe src="https://yoomoney.ru/quickpay/fundraise/button?billNumber=143H2JO3LLE.240720"
width="330" height="50" frameborder="0" allowtransparency="true" scrolling="no"></iframe>';
Expand Down
4 changes: 2 additions & 2 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@

defined('MOODLE_INTERNAL') || die();

$plugin->version = 2024073000;
$plugin->version = 2024090400;
$plugin->requires = 2023100900;
$plugin->component = 'paygw_payanyway';
$plugin->release = '0.13';
$plugin->release = '1.0';
$plugin->maturity = MATURITY_STABLE;