WC_Order::get_remaining_refund_amount()publicWC 1.0

How much money is left to refund?

Method of the class: WC_Order{}

No Hooks.

Return

String.

Usage

$WC_Order = new WC_Order();
$WC_Order->get_remaining_refund_amount();

WC_Order::get_remaining_refund_amount() code WC 8.7.0

public function get_remaining_refund_amount() {
	return wc_format_decimal( $this->get_total() - $this->get_total_refunded(), wc_get_price_decimals() );
}