You are here

function PaymentMethodController::execute in Payment 7

Execute a payment.

Note that payments may be executed even if their owner is not logged into the site. This means that if you need to do access control in your execute() method, you cannot use global $user.

Parameters

Payment $payment:

Return value

boolean Whether the payment was successfully executed or not.

2 methods override PaymentMethodController::execute()
PaymentMethodBasicController::execute in modules/paymentmethodbasic/paymentmethodbasic.module
Implements PaymentMethodController::execute().
PaymentMethodControllerUnavailable::execute in ./payment.classes.inc
Execute a payment.

File

./payment.classes.inc, line 880
The API and related functions for executing and managing payments.

Class

PaymentMethodController
A payment method controller, e.g. the logic behind a payment method.

Code

function execute(Payment $payment) {
}