You are here

public function PaymentExecuteAccess::getPaymentMethod in Payment 8.2

Gets the payment method that should execute the payment.

Return value

\Drupal\payment\Plugin\Payment\Method\PaymentMethodInterface

File

src/Event/PaymentExecuteAccess.php, line 81

Class

PaymentExecuteAccess
Provides an event that is dispatched when access is checked for payment execution.

Namespace

Drupal\payment\Event

Code

public function getPaymentMethod() {
  return $this->paymentMethod;
}