You are here

protected function PaymentMethodBase::doCapturePaymentAccess in Payment 8.2

Performs a payment method-specific access check for payment capture.

Parameters

\Drupal\Core\Session\AccountInterface $account:

Return value

bool

1 call to PaymentMethodBase::doCapturePaymentAccess()
PaymentMethodBase::capturePaymentAccess in src/Plugin/Payment/Method/PaymentMethodBase.php
Checks if the payment can be captured.
2 methods override PaymentMethodBase::doCapturePaymentAccess()
Basic::doCapturePaymentAccess in src/Plugin/Payment/Method/Basic.php
Performs a payment method-specific access check for payment capture.
PaymentTestNoResponse::doCapturePaymentAccess in modules/payment_test/src/Plugin/Payment/Method/PaymentTestNoResponse.php
Performs a payment method-specific access check for payment capture.

File

src/Plugin/Payment/Method/PaymentMethodBase.php, line 273

Class

PaymentMethodBase
A base payment method plugin.

Namespace

Drupal\payment\Plugin\Payment\Method

Code

protected function doCapturePaymentAccess(AccountInterface $account) {

  // Child classes must override this method to support payment capture.
  return AccessResult::forbidden();
}