You are here

public function PaymentPreCapture::getPayment in Payment 8.2

Gets the payment that will be captured.

Return value

\Drupal\payment\Entity\PaymentInterface

File

src/Event/PaymentPreCapture.php, line 39

Class

PaymentPreCapture
Provides an event that is dispatched before a payment is captured.

Namespace

Drupal\payment\Event

Code

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