public function SupportsAuthorizationsInterface::canCapturePayment in Commerce Core 8.2
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.
File
- modules/
payment/ src/ Plugin/ Commerce/ PaymentGateway/ SupportsAuthorizationsInterface.php, line 22
Class
- SupportsAuthorizationsInterface
- Defines the interface for gateways which support authorizing payments.
Namespace
Drupal\commerce_payment\Plugin\Commerce\PaymentGatewayCode
public function canCapturePayment(PaymentInterface $payment);