You are here

public function MolliePayment::doCapturePaymentAccess in Mollie Payment 8.2

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

Parameters

\Drupal\Core\Session\AccountInterface $account:

Return value

bool

Overrides PaymentMethodBase::doCapturePaymentAccess

File

src/Plugin/Payment/Method/MolliePayment.php, line 228

Class

MolliePayment
A payment method using Mollie.

Namespace

Drupal\mollie_payment\Plugin\Payment\Method

Code

public function doCapturePaymentAccess(AccountInterface $account) {
  return $this
    ->getCapture() && $this
    ->getPayment()
    ->getPaymentStatus()
    ->getPluginId() != $this
    ->getCaptureStatusId();
}