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.


Top ↑

Return Return

(bool) If false, the automatic refund button is hidden in the UI.


Top ↑

Source Source

File: includes/abstracts/abstract-wc-payment-gateway.php

	public function can_refund_order( $order ) {
		return $order && $this->supports( 'refunds' );
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.