You are here

public function PaymentMethodCapturePaymentInterface::capturePaymentAccess in Payment 8.2

Checks if the payment can be captured.

The payment method must have been configured and the payment must have been authorized prior to capture.

Parameters

\Drupal\Core\Session\AccountInterface $account:

Return value

\Drupal\Core\Access\AccessResultInterface

See also

self::capturePayment

1 method overrides PaymentMethodCapturePaymentInterface::capturePaymentAccess()
PaymentMethodBase::capturePaymentAccess in src/Plugin/Payment/Method/PaymentMethodBase.php
Checks if the payment can be captured.

File

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

Class

PaymentMethodCapturePaymentInterface
Defines a payment method that can capture authorized payments.

Namespace

Drupal\payment\Plugin\Payment\Method

Code

public function capturePaymentAccess(AccountInterface $account);