MDL-69166 core_payment: Addressing various integration points
authorShamim Rezaie <shamim@moodle.com>
Fri, 16 Oct 2020 17:43:25 +0000 (04:43 +1100)
committerShamim Rezaie <shamim@moodle.com>
Tue, 27 Oct 2020 04:45:25 +0000 (15:45 +1100)
commitb63f17b5f127a29e97f7177b79239f4037feba38
treed72ae5c88fd04139367c0791440c9bd1b069ccd0
parent52305c9a2ec640e8f67aef527d9ce4867adb85db
MDL-69166 core_payment: Addressing various integration points

- Add help for 'payment account' field in the enrol instance form
- Remove MOODLE_INTERNALs when not necessary
- Add $userid to deliver_order
- Check if provider classes implement the provider interface
- Rename get_cost to get_payable
- get_payable returns payable object
- Improve registerEventListeners and added init
- Rename payment\provider to payment\service_provider
16 files changed:
enrol/fee/classes/payment/service_provider.php [moved from enrol/fee/classes/payment/provider.php with 74% similarity]
enrol/fee/classes/plugin.php
enrol/fee/lang/en/enrol_fee.php
enrol/fee/templates/payment_region.mustache
lang/en/payment.php
payment/amd/build/gateways_modal.min.js
payment/amd/build/gateways_modal.min.js.map
payment/amd/src/gateways_modal.js
payment/classes/external/get_available_gateways.php
payment/classes/helper.php
payment/classes/local/callback/service_provider.php [moved from payment/classes/local/callback/provider.php with 74% similarity]
payment/classes/local/entities/payable.php [new file with mode: 0644]
payment/gateway/paypal/classes/external/get_config_for_js.php
payment/gateway/paypal/classes/external/transaction_complete.php
payment/gateway/paypal/classes/gateway.php
payment/tests/helper_test.php