The service_provider interface for plugins to provide callbacks which are needed by the payment subsystem.
More...
|
static | deliver_order (string $paymentarea, int $itemid, int $paymentid, int $userid) |
| Callback function that delivers what the user paid for to them.
|
|
static | get_payable (string $paymentarea, int $itemid) |
| Callback function that returns the cost of the given item in the specified payment area, along with the accountid that payments are paid to.
|
|
static | get_success_url (string $paymentarea, int $itemid) |
| Callback function that returns the URL of the page the user should be redirected to in the case of a successful payment.
|
|
The service_provider interface for plugins to provide callbacks which are needed by the payment subsystem.
- Copyright
- 2020 Shamim Rezaie shami.nosp@m.m@mo.nosp@m.odle..nosp@m.com
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ deliver_order()
static core_payment\local\callback\service_provider::deliver_order |
( |
string | $paymentarea, |
|
|
int | $itemid, |
|
|
int | $paymentid, |
|
|
int | $userid ) |
|
static |
Callback function that delivers what the user paid for to them.
- Parameters
-
string | $paymentarea | Payment area |
int | $itemid | An identifier that is known to the plugin |
int | $paymentid | payment id as inserted into the 'payments' table, if needed for reference |
int | $userid | The userid the order is going to deliver to |
- Return values
-
bool | Whether successful or not |
Implemented in enrol_fee\payment\service_provider.
◆ get_payable()
static core_payment\local\callback\service_provider::get_payable |
( |
string | $paymentarea, |
|
|
int | $itemid ) |
|
static |
Callback function that returns the cost of the given item in the specified payment area, along with the accountid that payments are paid to.
- Parameters
-
string | $paymentarea | Payment area |
int | $itemid | An identifier that is known to the plugin |
- Return values
-
Implemented in enrol_fee\payment\service_provider.
◆ get_success_url()
static core_payment\local\callback\service_provider::get_success_url |
( |
string | $paymentarea, |
|
|
int | $itemid ) |
|
static |
Callback function that returns the URL of the page the user should be redirected to in the case of a successful payment.
- Parameters
-
string | $paymentarea | Payment area |
int | $itemid | An identifier that is known to the plugin |
- Return values
-
Implemented in enrol_fee\payment\service_provider.
The documentation for this interface was generated from the following file:
- payment/classes/local/callback/service_provider.php