public function Unavailable::executePayment in Payment 8.2
Executes the payment.
When executing a payment, it may be authorized, or authorized and captured. After calling this method, more action may be required depending on the return value of self::getPaymentExecutionResult(). This method MUST set the payment's status to "payment_pending" before it performs any payment-method-specific logic.
Return value
\Drupal\payment\OperationResultInterface
Overrides PaymentMethodInterface::executePayment
See also
self::executePaymentAccess
File
- src/
Plugin/ Payment/ Method/ Unavailable.php, line 91
Class
- Unavailable
- A payment method controller that essentially disables payment methods.
Namespace
Drupal\payment\Plugin\Payment\MethodCode
public function executePayment() {
throw new \RuntimeException('This plugin cannot execute payments.');
}