You are here

public function PayflowLink::canCapturePayment in Commerce PayPal 8

Checks whether the given payment can be captured.

Parameters

\Drupal\commerce_payment\Entity\PaymentInterface $payment: The payment to capture.

Return value

bool TRUE if the payment can be captured, FALSE otherwise.

Overrides PaymentGatewayBase::canCapturePayment

File

src/Plugin/Commerce/PaymentGateway/PayflowLink.php, line 357

Class

PayflowLink
Provides the PayPal Payflow Link payment gateway.

Namespace

Drupal\commerce_paypal\Plugin\Commerce\PaymentGateway

Code

public function canCapturePayment(PaymentInterface $payment) {
  return $this
    ->canVoidPayment($payment);
}