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:34:56 +0000 (15:34 +1100)
commitf5d94d630529fc358ae60d7db1d77ad3c07d6ecd
treed2e625fbac7d24c238434f4f3c5aa3b1b519c937
parentd5a9d6e5207b5e59abbb1385fcf61498111c960e
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