WC_Payment_Gateway::can_refund_order( WC_Order $order )
Can the order be refunded via this gateway?
Description Description
Should be extended by gateways to do their own checks.
Parameters Parameters
- $order
-
(Required) Order object.
Return Return
(bool) If false, the automatic refund button is hidden in the UI.
Source Source
File: includes/abstracts/abstract-wc-payment-gateway.php
public function can_refund_order( $order ) { return $order && $this->supports( 'refunds' ); }