You are here

public function PaymentPreRefund::getPayment in Payment 8.2

Gets the payment that will be refunded.

Return value

\Drupal\payment\Entity\PaymentInterface

File

src/Event/PaymentPreRefund.php, line 39

Class

PaymentPreRefund
Provides an event that is dispatched before a payment is refunded.

Namespace

Drupal\payment\Event

Code

public function getPayment() {
  return $this->payment;
}