You are here

public function PaymentMethodCapturePaymentInterface::capturePayment in Payment 8.2

Captures the payment.

Implementations must dispatch the \Drupal\payment\Event\PaymentEvents::PAYMENT_PRE_CAPTURE Symfony event before capture.

Return value

\Drupal\payment\OperationResultInterface

See also

self::capturePaymentAccess

1 method overrides PaymentMethodCapturePaymentInterface::capturePayment()
PaymentMethodBase::capturePayment in src/Plugin/Payment/Method/PaymentMethodBase.php
Captures the payment.

File

src/Plugin/Payment/Method/PaymentMethodCapturePaymentInterface.php, line 44

Class

PaymentMethodCapturePaymentInterface
Defines a payment method that can capture authorized payments.

Namespace

Drupal\payment\Plugin\Payment\Method

Code

public function capturePayment();