Skip to content

Commit

Permalink
MDL-69166 core_payment: post to process payment
Browse files Browse the repository at this point in the history
  • Loading branch information
rezaies committed Oct 26, 2020
1 parent 59eaf4b commit 8ef156b
Show file tree
Hide file tree
Showing 9 changed files with 85 additions and 36 deletions.
3 changes: 2 additions & 1 deletion enrol/fee/classes/plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,8 @@ public function enrol_page_hook(stdClass $instance) {
echo '</div>';
} else {
\core_payment\helper::gateways_modal_requirejs();
$attributes = core_payment\helper::gateways_modal_link_params($cost, $instance->currency);
$attributes = core_payment\helper::gateways_modal_link_params($cost, $instance->currency, 'enrol_fee',
$instance->id);

echo '<div align="center">' .
html_writer::tag('button', get_string("sendpaymentbutton", "enrol_paypal"), $attributes) .
Expand Down
1 change: 1 addition & 0 deletions lang/en/payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@
*/

$string['nogateway'] = 'There is no payment gateway that can be used.';
$string['nogatewayselected'] = 'You first need to select a payment gateway.';
$string['selectpaymenttype'] = 'Select payment type';
$string['supportedcurrencies'] = 'Supported currencies';
2 changes: 1 addition & 1 deletion payment/amd/build/gateways_modal.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8ef156b

Please sign in to comment.