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