public function SupportsVoidsInterface::canVoidPayment in Commerce Core 8.2
Checks whether the given payment can be voided.
Parameters
\Drupal\commerce_payment\Entity\PaymentInterface $payment: The payment to void.
Return value
bool TRUE if the payment can be voided, FALSE otherwise.
File
- modules/
payment/ src/ Plugin/ Commerce/ PaymentGateway/ SupportsVoidsInterface.php, line 23
Class
- SupportsVoidsInterface
- Defines the interface for gateways which support voiding payments.
Namespace
Drupal\commerce_payment\Plugin\Commerce\PaymentGatewayCode
public function canVoidPayment(PaymentInterface $payment);